Struct windows::IInspectable[][src]

#[repr(transparent)]
pub struct IInspectable(_);
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.

Implementations

impl IInspectable[src]

pub fn type_name(&self) -> Result<HSTRING>[src]

Returns the canonical type name for the underlying object.

Trait Implementations

impl Clone for IInspectable[src]

fn clone(&self) -> IInspectable[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for IInspectable[src]

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

Formats the value using the given formatter. Read more

impl Interface for IInspectable[src]

type Vtable = IInspectable_abi

const IID: Guid[src]

unsafe fn vtable(&self) -> &Self::Vtable[src]

Returns the vtable for the current interface.

unsafe fn assume_vtable<T: Interface>(&self) -> &T::Vtable[src]

Returns the vtable for an assumed interface. The name comes from Box’s assume_init method as it assumes the vtable is implemented by the current interface’s vtable (e.g. a parent interface). Read more

fn cast<T: Interface>(&self) -> Result<T>[src]

Attempts to cast the current interface to another interface using QueryInterface. The name cast is preferred to query because there is a WinRT method named query but not one named cast. Read more

fn downgrade(&self) -> Result<Weak<Self>>[src]

Attempts to create a Weak reference to this object.

impl PartialEq<IInspectable> for IInspectable[src]

fn eq(&self, other: &IInspectable) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &IInspectable) -> bool[src]

This method tests for !=.

impl RuntimeType for IInspectable[src]

impl TryFrom<&'_ HSTRING> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: &HSTRING) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<&'_ IInspectable> for HSTRING[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: &IInspectable) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<&'_ str> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: &str) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<HSTRING> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: HSTRING) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<IInspectable> for HSTRING[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: IInspectable) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<bool> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: bool) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<f32> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: f32) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<f64> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: f64) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<i16> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: i16) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<i32> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: i32) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<i64> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: i64) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<u16> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: u16) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<u32> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: u32) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<u64> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: u64) -> Result<Self>[src]

Performs the conversion.

impl TryFrom<u8> for IInspectable[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(value: u8) -> Result<Self>[src]

Performs the conversion.

impl Eq for IInspectable[src]

impl StructuralEq for IInspectable[src]

impl StructuralPartialEq for IInspectable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.