Struct IScriptNode
pub struct IScriptNode(/* private fields */);
Implementations§
§impl IScriptNode
impl 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<IScriptNode> for IScriptEntry
impl CanInto<IScriptNode> for IScriptEntry
§impl CanInto<IScriptNode> for IScriptScriptlet
impl CanInto<IScriptNode> for IScriptScriptlet
§impl CanInto<IUnknown> for IScriptNode
impl CanInto<IUnknown> for IScriptNode
§impl Clone for IScriptNode
impl Clone for IScriptNode
§fn clone(&self) -> IScriptNode
fn clone(&self) -> IScriptNode
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 IScriptNode
impl Debug for IScriptNode
§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<&IScriptNode> for &IUnknown
impl From<&IScriptNode> for &IUnknown
§fn from(value: &IScriptNode) -> Self
fn from(value: &IScriptNode) -> Self
Converts to this type from the input type.
§impl From<&IScriptScriptlet> for &IScriptNode
impl From<&IScriptScriptlet> for &IScriptNode
§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<IScriptNode> for IUnknown
impl From<IScriptNode> for IUnknown
§fn from(value: IScriptNode) -> Self
fn from(value: IScriptNode) -> Self
Converts to this type from the input type.
§impl From<IScriptScriptlet> for IScriptNode
impl From<IScriptScriptlet> for IScriptNode
§fn from(value: IScriptScriptlet) -> Self
fn from(value: IScriptScriptlet) -> Self
Converts to this type from the input type.
§impl Interface for IScriptNode
impl Interface for IScriptNode
§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 IScriptNode
impl PartialEq for IScriptNode
impl Eq for IScriptNode
impl StructuralPartialEq for IScriptNode
Auto Trait Implementations§
impl Freeze for IScriptNode
impl RefUnwindSafe for IScriptNode
impl !Send for IScriptNode
impl !Sync for IScriptNode
impl Unpin for IScriptNode
impl UnwindSafe for IScriptNode
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