Struct windows::Win32::System::WinRT::Metadata::IMetaDataEmit2

pub struct IMetaDataEmit2(/* private fields */);

Implementations§

§

impl IMetaDataEmit2

pub unsafe fn DefineMethodSpec( &self, tkparent: u32, pvsigblob: *mut u8, cbsigblob: u32, pmi: *mut u32 ) -> Result<()>

pub unsafe fn GetDeltaSaveSize( &self, fsave: CorSaveSize, pdwsavesize: *mut u32 ) -> Result<()>

pub unsafe fn SaveDelta<P0>(&self, szfile: P0, dwsaveflags: u32) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SaveDeltaToStream<P0>( &self, pistream: P0, dwsaveflags: u32 ) -> Result<()>
where P0: Param<IStream>,

pub unsafe fn SaveDeltaToMemory( &self, pbdata: *mut c_void, cbdata: u32 ) -> Result<()>

pub unsafe fn DefineGenericParam<P0>( &self, tk: u32, ulparamseq: u32, dwparamflags: u32, szname: P0, reserved: u32, rtkconstraints: *mut u32, pgp: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetGenericParamProps<P0>( &self, gp: u32, dwparamflags: u32, szname: P0, reserved: u32, rtkconstraints: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn ResetENCLog(&self) -> Result<()>

Methods from Deref<Target = IMetaDataEmit>§

pub unsafe fn SetModuleProps<P0>(&self, szname: P0) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn Save<P0>(&self, szfile: P0, dwsaveflags: u32) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SaveToStream<P0>( &self, pistream: P0, dwsaveflags: u32 ) -> Result<()>
where P0: Param<IStream>,

pub unsafe fn GetSaveSize( &self, fsave: CorSaveSize, pdwsavesize: *mut u32 ) -> Result<()>

pub unsafe fn DefineTypeDef<P0>( &self, sztypedef: P0, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, ptd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineNestedType<P0>( &self, sztypedef: P0, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, tdencloser: u32, ptd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetHandler<P0>(&self, punk: P0) -> Result<()>
where P0: Param<IUnknown>,

pub unsafe fn DefineMethod<P0>( &self, td: u32, szname: P0, dwmethodflags: u32, pvsigblob: *mut u8, cbsigblob: u32, ulcoderva: u32, dwimplflags: u32, pmd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineMethodImpl( &self, td: u32, tkbody: u32, tkdecl: u32 ) -> Result<()>

pub unsafe fn DefineTypeRefByName<P0>( &self, tkresolutionscope: u32, szname: P0, ptr: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineImportType<P0, P1, P2>( &self, passemimport: P0, pbhashvalue: *const c_void, cbhashvalue: u32, pimport: P1, tdimport: u32, passememit: P2, ptr: *mut u32 ) -> Result<()>
where P0: Param<IMetaDataAssemblyImport>, P1: Param<IMetaDataImport>, P2: Param<IMetaDataAssemblyEmit>,

pub unsafe fn DefineMemberRef<P0>( &self, tkimport: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineImportMember<P0, P1, P2>( &self, passemimport: P0, pbhashvalue: *const c_void, cbhashvalue: u32, pimport: P1, mbmember: u32, passememit: P2, tkparent: u32, pmr: *mut u32 ) -> Result<()>
where P0: Param<IMetaDataAssemblyImport>, P1: Param<IMetaDataImport>, P2: Param<IMetaDataAssemblyEmit>,

pub unsafe fn DefineEvent<P0>( &self, td: u32, szevent: P0, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetClassLayout( &self, td: u32, dwpacksize: u32, rfieldoffsets: *mut COR_FIELD_OFFSET, ulclasssize: u32 ) -> Result<()>

pub unsafe fn DeleteClassLayout(&self, td: u32) -> Result<()>

pub unsafe fn SetFieldMarshal( &self, tk: u32, pvnativetype: *mut u8, cbnativetype: u32 ) -> Result<()>

pub unsafe fn DeleteFieldMarshal(&self, tk: u32) -> Result<()>

pub unsafe fn DefinePermissionSet( &self, tk: u32, dwaction: u32, pvpermission: *const c_void, cbpermission: u32, ppm: *mut u32 ) -> Result<()>

pub unsafe fn SetRVA(&self, md: u32, ulrva: u32) -> Result<()>

pub unsafe fn GetTokenFromSig( &self, pvsig: *mut u8, cbsig: u32, pmsig: *mut u32 ) -> Result<()>

pub unsafe fn DefineModuleRef<P0>( &self, szname: P0, pmur: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetParent(&self, mr: u32, tk: u32) -> Result<()>

pub unsafe fn GetTokenFromTypeSpec( &self, pvsig: *mut u8, cbsig: u32, ptypespec: *mut u32 ) -> Result<()>

pub unsafe fn SaveToMemory( &self, pbdata: *mut c_void, cbdata: u32 ) -> Result<()>

pub unsafe fn DefineUserString<P0>( &self, szstring: P0, cchstring: u32, pstk: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DeleteToken(&self, tkobj: u32) -> Result<()>

pub unsafe fn SetMethodProps( &self, md: u32, dwmethodflags: u32, ulcoderva: u32, dwimplflags: u32 ) -> Result<()>

pub unsafe fn SetTypeDefProps( &self, td: u32, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32 ) -> Result<()>

pub unsafe fn SetEventProps( &self, ev: u32, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32 ) -> Result<()>

pub unsafe fn SetPermissionSetProps( &self, tk: u32, dwaction: u32, pvpermission: *const c_void, cbpermission: u32, ppm: *mut u32 ) -> Result<()>

pub unsafe fn DefinePinvokeMap<P0>( &self, tk: u32, dwmappingflags: u32, szimportname: P0, mrimportdll: u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetPinvokeMap<P0>( &self, tk: u32, dwmappingflags: u32, szimportname: P0, mrimportdll: u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DeletePinvokeMap(&self, tk: u32) -> Result<()>

pub unsafe fn DefineCustomAttribute( &self, tkowner: u32, tkctor: u32, pcustomattribute: *const c_void, cbcustomattribute: u32, pcv: *mut u32 ) -> Result<()>

pub unsafe fn SetCustomAttributeValue( &self, pcv: u32, pcustomattribute: *const c_void, cbcustomattribute: u32 ) -> Result<()>

pub unsafe fn DefineField<P0>( &self, td: u32, szname: P0, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32, pmd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineProperty<P0>( &self, td: u32, szproperty: P0, dwpropflags: u32, pvsig: *mut u8, cbsig: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32, pmdprop: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineParam<P0>( &self, md: u32, ulparamseq: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32, ppd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn SetFieldProps( &self, fd: u32, dwfieldflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32 ) -> Result<()>

pub unsafe fn SetPropertyProps( &self, pr: u32, dwpropflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32 ) -> Result<()>

pub unsafe fn SetParamProps<P0>( &self, pd: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn DefineSecurityAttributeSet( &self, tkobj: u32, rsecattrs: *mut COR_SECATTR, csecattrs: u32, pulerrorattr: *mut u32 ) -> Result<()>

pub unsafe fn ApplyEditAndContinue<P0>(&self, pimport: P0) -> Result<()>
where P0: Param<IUnknown>,

pub unsafe fn TranslateSigWithScope<P0, P1, P2, P3>( &self, passemimport: P0, pbhashvalue: *const c_void, cbhashvalue: u32, import: P1, pbsigblob: *mut u8, cbsigblob: u32, passememit: P2, emit: P3, pvtranslatedsig: *mut u8, cbtranslatedsigmax: u32, pcbtranslatedsig: *mut u32 ) -> Result<()>
where P0: Param<IMetaDataAssemblyImport>, P1: Param<IMetaDataImport>, P2: Param<IMetaDataAssemblyEmit>, P3: Param<IMetaDataEmit>,

pub unsafe fn SetMethodImplFlags(&self, md: u32, dwimplflags: u32) -> Result<()>

pub unsafe fn SetFieldRVA(&self, fd: u32, ulrva: u32) -> Result<()>

pub unsafe fn Merge<P0, P1, P2>( &self, pimport: P0, phostmaptoken: P1, phandler: P2 ) -> Result<()>
where P0: Param<IMetaDataImport>, P1: Param<IMapToken>, P2: Param<IUnknown>,

pub unsafe fn MergeEnd(&self) -> Result<()>

Trait Implementations§

§

impl Clone for IMetaDataEmit2

§

fn clone(&self) -> IMetaDataEmit2

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IMetaDataEmit2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Deref for IMetaDataEmit2

§

type Target = IMetaDataEmit

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&IMetaDataEmit2> for &IMetaDataEmit

§

fn from(value: &IMetaDataEmit2) -> Self

Converts to this type from the input type.
§

impl From<&IMetaDataEmit2> for &IUnknown

§

fn from(value: &IMetaDataEmit2) -> Self

Converts to this type from the input type.
§

impl From<IMetaDataEmit2> for IMetaDataEmit

§

fn from(value: IMetaDataEmit2) -> Self

Converts to this type from the input type.
§

impl From<IMetaDataEmit2> for IUnknown

§

fn from(value: IMetaDataEmit2) -> Self

Converts to this type from the input type.
§

impl Interface for IMetaDataEmit2

§

const IID: GUID = _

The GUID associated with the interface.
§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for IMetaDataEmit2

§

fn eq(&self, other: &IMetaDataEmit2) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IMetaDataEmit2

§

impl StructuralPartialEq for IMetaDataEmit2

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.