Struct ICreateTypeInfo
pub struct ICreateTypeInfo(/* private fields */);
Implementations§
§impl ICreateTypeInfo
impl ICreateTypeInfo
pub unsafe fn SetGuid(&self, guid: *const GUID) -> Result<()>
pub unsafe fn SetTypeFlags(&self, utypeflags: u32) -> Result<()>
pub unsafe fn SetDocString<P0>(&self, pstrdoc: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> Result<()>
pub unsafe fn SetVersion( &self, wmajorvernum: u16, wminorvernum: u16, ) -> Result<()>
pub unsafe fn AddRefTypeInfo<P0>(
&self,
ptinfo: P0,
phreftype: *const u32,
) -> Result<()>where
P0: Param<ITypeInfo>,
pub unsafe fn AddFuncDesc( &self, index: u32, pfuncdesc: *const FUNCDESC, ) -> Result<()>
pub unsafe fn AddImplType(&self, index: u32, hreftype: u32) -> Result<()>
pub unsafe fn SetImplTypeFlags( &self, index: u32, impltypeflags: IMPLTYPEFLAGS, ) -> Result<()>
pub unsafe fn SetAlignment(&self, cbalignment: u16) -> Result<()>
pub unsafe fn SetSchema<P0>(&self, pstrschema: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn AddVarDesc( &self, index: u32, pvardesc: *const VARDESC, ) -> Result<()>
pub unsafe fn SetFuncAndParamNames( &self, index: u32, rgsznames: &[PCWSTR], ) -> Result<()>
pub unsafe fn SetVarName<P1>(&self, index: u32, szname: P1) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetTypeDescAlias( &self, ptdescalias: *const TYPEDESC, ) -> Result<()>
pub unsafe fn DefineFuncAsDllEntry<P1, P2>(
&self,
index: u32,
szdllname: P1,
szprocname: P2,
) -> Result<()>where
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
pub unsafe fn SetFuncDocString<P1>(
&self,
index: u32,
szdocstring: P1,
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetVarDocString<P1>(
&self,
index: u32,
szdocstring: P1,
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetFuncHelpContext( &self, index: u32, dwhelpcontext: u32, ) -> Result<()>
pub unsafe fn SetVarHelpContext( &self, index: u32, dwhelpcontext: u32, ) -> Result<()>
pub unsafe fn SetMops(&self, index: u32, bstrmops: &BSTR) -> Result<()>
pub unsafe fn SetTypeIdldesc(&self, pidldesc: *const IDLDESC) -> Result<()>
pub unsafe fn LayOut(&self) -> Result<()>
Trait Implementations§
§impl CanInto<ICreateTypeInfo> for ICreateTypeInfo2
impl CanInto<ICreateTypeInfo> for ICreateTypeInfo2
§impl CanInto<IUnknown> for ICreateTypeInfo
impl CanInto<IUnknown> for ICreateTypeInfo
§impl Clone for ICreateTypeInfo
impl Clone for ICreateTypeInfo
§fn clone(&self) -> ICreateTypeInfo
fn clone(&self) -> ICreateTypeInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ICreateTypeInfo
impl Debug for ICreateTypeInfo
§impl From<&ICreateTypeInfo> for &IUnknown
impl From<&ICreateTypeInfo> for &IUnknown
§fn from(value: &ICreateTypeInfo) -> Self
fn from(value: &ICreateTypeInfo) -> Self
Converts to this type from the input type.
§impl From<&ICreateTypeInfo2> for &ICreateTypeInfo
impl From<&ICreateTypeInfo2> for &ICreateTypeInfo
§fn from(value: &ICreateTypeInfo2) -> Self
fn from(value: &ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl From<ICreateTypeInfo> for IUnknown
impl From<ICreateTypeInfo> for IUnknown
§fn from(value: ICreateTypeInfo) -> Self
fn from(value: ICreateTypeInfo) -> Self
Converts to this type from the input type.
§impl From<ICreateTypeInfo2> for ICreateTypeInfo
impl From<ICreateTypeInfo2> for ICreateTypeInfo
§fn from(value: ICreateTypeInfo2) -> Self
fn from(value: ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl Interface for ICreateTypeInfo
impl Interface for ICreateTypeInfo
§fn as_raw(&self) -> *mut c_void
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
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_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ICreateTypeInfo
impl PartialEq for ICreateTypeInfo
impl Eq for ICreateTypeInfo
impl StructuralPartialEq for ICreateTypeInfo
Auto Trait Implementations§
impl Freeze for ICreateTypeInfo
impl RefUnwindSafe for ICreateTypeInfo
impl !Send for ICreateTypeInfo
impl !Sync for ICreateTypeInfo
impl Unpin for ICreateTypeInfo
impl UnwindSafe for ICreateTypeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more