Struct windows_core::IInspectable
#[repr(transparent)]pub struct IInspectable(pub IUnknown);
Expand description
A WinRT object that may be used as a polymorphic stand-in for any WinRT class, interface, or boxed value.
IInspectable
represents the
IInspectable
interface.
Tuple Fields§
§0: IUnknown
Implementations§
§impl IInspectable
impl IInspectable
pub fn GetRuntimeClassName(&self) -> Result<HSTRING>
pub fn GetRuntimeClassName(&self) -> Result<HSTRING>
Returns the canonical type name for the underlying object.
pub fn GetTrustLevel(&self) -> Result<i32>
pub fn GetTrustLevel(&self) -> Result<i32>
Gets the trust level of the current object.
Trait Implementations§
§impl Clone for IInspectable
impl Clone for IInspectable
§fn clone(&self) -> IInspectable
fn clone(&self) -> IInspectable
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 IInspectable
impl Debug for IInspectable
§impl From<&IInspectable> for &IUnknown
impl From<&IInspectable> for &IUnknown
§fn from(value: &IInspectable) -> Self
fn from(value: &IInspectable) -> Self
Converts to this type from the input type.
§impl From<IInspectable> for IUnknown
impl From<IInspectable> for IUnknown
§fn from(value: IInspectable) -> Self
fn from(value: IInspectable) -> Self
Converts to this type from the input type.
§impl Interface for IInspectable
impl Interface for IInspectable
§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.
§impl PartialEq for IInspectable
impl PartialEq for IInspectable
§fn eq(&self, other: &IInspectable) -> bool
fn eq(&self, other: &IInspectable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<&HSTRING> for IInspectable
impl TryFrom<&HSTRING> for IInspectable
§impl TryFrom<&IInspectable> for HSTRING
impl TryFrom<&IInspectable> for HSTRING
§impl TryFrom<&IInspectable> for bool
impl TryFrom<&IInspectable> for bool
§impl TryFrom<&IInspectable> for f32
impl TryFrom<&IInspectable> for f32
§impl TryFrom<&IInspectable> for f64
impl TryFrom<&IInspectable> for f64
§impl TryFrom<&IInspectable> for i16
impl TryFrom<&IInspectable> for i16
§impl TryFrom<&IInspectable> for i32
impl TryFrom<&IInspectable> for i32
§impl TryFrom<&IInspectable> for i64
impl TryFrom<&IInspectable> for i64
§impl TryFrom<&IInspectable> for u16
impl TryFrom<&IInspectable> for u16
§impl TryFrom<&IInspectable> for u32
impl TryFrom<&IInspectable> for u32
§impl TryFrom<&IInspectable> for u64
impl TryFrom<&IInspectable> for u64
§impl TryFrom<&IInspectable> for u8
impl TryFrom<&IInspectable> for u8
§impl TryFrom<&str> for IInspectable
impl TryFrom<&str> for IInspectable
§impl TryFrom<HSTRING> for IInspectable
impl TryFrom<HSTRING> for IInspectable
§impl TryFrom<IInspectable> for HSTRING
impl TryFrom<IInspectable> for HSTRING
§impl TryFrom<IInspectable> for bool
impl TryFrom<IInspectable> for bool
§impl TryFrom<IInspectable> for f32
impl TryFrom<IInspectable> for f32
§impl TryFrom<IInspectable> for f64
impl TryFrom<IInspectable> for f64
§impl TryFrom<IInspectable> for i16
impl TryFrom<IInspectable> for i16
§impl TryFrom<IInspectable> for i32
impl TryFrom<IInspectable> for i32
§impl TryFrom<IInspectable> for i64
impl TryFrom<IInspectable> for i64
§impl TryFrom<IInspectable> for u16
impl TryFrom<IInspectable> for u16
§impl TryFrom<IInspectable> for u32
impl TryFrom<IInspectable> for u32
§impl TryFrom<IInspectable> for u64
impl TryFrom<IInspectable> for u64
§impl TryFrom<IInspectable> for u8
impl TryFrom<IInspectable> for u8
§impl TryFrom<bool> for IInspectable
impl TryFrom<bool> for IInspectable
§impl TryFrom<f32> for IInspectable
impl TryFrom<f32> for IInspectable
§impl TryFrom<f64> for IInspectable
impl TryFrom<f64> for IInspectable
§impl TryFrom<i16> for IInspectable
impl TryFrom<i16> for IInspectable
§impl TryFrom<i32> for IInspectable
impl TryFrom<i32> for IInspectable
§impl TryFrom<i64> for IInspectable
impl TryFrom<i64> for IInspectable
§impl TryFrom<u16> for IInspectable
impl TryFrom<u16> for IInspectable
§impl TryFrom<u32> for IInspectable
impl TryFrom<u32> for IInspectable
§impl TryFrom<u64> for IInspectable
impl TryFrom<u64> for IInspectable
§impl TryFrom<u8> for IInspectable
impl TryFrom<u8> for IInspectable
impl Eq for IInspectable
impl StructuralPartialEq for IInspectable
Auto Trait Implementations§
impl Freeze for IInspectable
impl RefUnwindSafe for IInspectable
impl !Send for IInspectable
impl !Sync for IInspectable
impl Unpin for IInspectable
impl UnwindSafe for IInspectable
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