Struct IScriptEntry
pub struct IScriptEntry(/* private fields */);
Implementations§
§impl IScriptEntry
impl IScriptEntry
pub unsafe fn GetText(&self) -> Result<BSTR>
pub unsafe fn SetText<P0>(&self, psz: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetBody(&self) -> Result<BSTR>
pub unsafe fn SetBody<P0>(&self, psz: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetName(&self) -> Result<BSTR>
pub unsafe fn SetName<P0>(&self, psz: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetItemName(&self) -> Result<BSTR>
pub unsafe fn SetItemName<P0>(&self, psz: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetSignature( &self, ppti: *mut Option<ITypeInfo>, pimethod: *mut u32, ) -> Result<()>
pub unsafe fn SetSignature<P0>(&self, pti: P0, imethod: u32) -> Result<()>where
P0: Param<ITypeInfo>,
pub unsafe fn GetRange(&self, pichmin: *mut u32, pcch: *mut u32) -> Result<()>
Methods from Deref<Target = IScriptNode>§
pub unsafe fn Alive(&self) -> Result<()>
pub unsafe fn Delete(&self) -> Result<()>
pub unsafe fn GetParent(&self) -> Result<IScriptNode>
pub unsafe fn GetIndexInParent(&self) -> Result<u32>
pub unsafe fn GetCookie(&self) -> Result<u32>
pub unsafe fn GetNumberOfChildren(&self) -> Result<u32>
pub unsafe fn GetChild(&self, isn: u32) -> Result<IScriptNode>
pub unsafe fn GetLanguage(&self) -> Result<BSTR>
pub unsafe fn CreateChildEntry<P2>(
&self,
isn: u32,
dwcookie: u32,
pszdelimiter: P2,
) -> Result<IScriptEntry>where
P2: Param<PCWSTR>,
pub unsafe fn CreateChildHandler<P0, P3, P4, P5>(
&self,
pszdefaultname: P0,
prgpsznames: &[PCWSTR],
pszevent: P3,
pszdelimiter: P4,
ptisignature: P5,
imethodsignature: u32,
isn: u32,
dwcookie: u32,
) -> Result<IScriptEntry>where
P0: Param<PCWSTR>,
P3: Param<PCWSTR>,
P4: Param<PCWSTR>,
P5: Param<ITypeInfo>,
Trait Implementations§
§impl CanInto<IScriptEntry> for IScriptScriptlet
impl CanInto<IScriptEntry> for IScriptScriptlet
§impl CanInto<IScriptNode> for IScriptEntry
impl CanInto<IScriptNode> for IScriptEntry
§impl CanInto<IUnknown> for IScriptEntry
impl CanInto<IUnknown> for IScriptEntry
§impl Clone for IScriptEntry
impl Clone for IScriptEntry
§fn clone(&self) -> IScriptEntry
fn clone(&self) -> IScriptEntry
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 IScriptEntry
impl Debug for IScriptEntry
§impl Deref for IScriptEntry
impl Deref for IScriptEntry
§impl From<&IScriptEntry> for &IScriptNode
impl From<&IScriptEntry> for &IScriptNode
§fn from(value: &IScriptEntry) -> Self
fn from(value: &IScriptEntry) -> Self
Converts to this type from the input type.
§impl From<&IScriptEntry> for &IUnknown
impl From<&IScriptEntry> for &IUnknown
§fn from(value: &IScriptEntry) -> Self
fn from(value: &IScriptEntry) -> Self
Converts to this type from the input type.
§impl From<&IScriptScriptlet> for &IScriptEntry
impl From<&IScriptScriptlet> for &IScriptEntry
§fn from(value: &IScriptScriptlet) -> Self
fn from(value: &IScriptScriptlet) -> Self
Converts to this type from the input type.
§impl From<IScriptEntry> for IScriptNode
impl From<IScriptEntry> for IScriptNode
§fn from(value: IScriptEntry) -> Self
fn from(value: IScriptEntry) -> Self
Converts to this type from the input type.
§impl From<IScriptEntry> for IUnknown
impl From<IScriptEntry> for IUnknown
§fn from(value: IScriptEntry) -> Self
fn from(value: IScriptEntry) -> Self
Converts to this type from the input type.
§impl From<IScriptScriptlet> for IScriptEntry
impl From<IScriptScriptlet> for IScriptEntry
§fn from(value: IScriptScriptlet) -> Self
fn from(value: IScriptScriptlet) -> Self
Converts to this type from the input type.
§impl Interface for IScriptEntry
impl Interface for IScriptEntry
§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 IScriptEntry
impl PartialEq for IScriptEntry
impl Eq for IScriptEntry
impl StructuralPartialEq for IScriptEntry
Auto Trait Implementations§
impl Freeze for IScriptEntry
impl RefUnwindSafe for IScriptEntry
impl !Send for IScriptEntry
impl !Sync for IScriptEntry
impl Unpin for IScriptEntry
impl UnwindSafe for IScriptEntry
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