Struct windows::Object [−][src]
A WinRT object that may be used as a polymorphic stand-in for any WinRT class, interface, or boxed value.
Object
implements the
IInspectable
interface.
Implementations
impl Object
[src]
pub fn type_name(&self) -> Result<HString>
[src]
Returns the canonical type name for the underlying object.
Trait Implementations
impl Clone for Object
[src]
impl Debug for Object
[src]
impl Eq for Object
[src]
impl Interface for Object
[src]
type Vtable = Object_vtable
const IID: Guid
[src]
unsafe fn vtable(&self) -> &Self::Vtable
[src]
unsafe fn assume_vtable<T: Interface>(&self) -> &T::Vtable
[src]
fn cast<T: Interface>(&self) -> Result<T>
[src]
impl PartialEq<Object> for Object
[src]
impl RuntimeType for Object
[src]
type DefaultType = Option<Self>
const SIGNATURE: ConstBuffer
[src]
impl StructuralEq for Object
[src]
impl StructuralPartialEq for Object
[src]
impl TryFrom<&'_ HString> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &HString) -> Result<Self>
[src]
impl TryFrom<&'_ Object> for HString
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &Object) -> Result<Self>
[src]
impl TryFrom<&'_ str> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &str) -> Result<Self>
[src]
impl TryFrom<HString> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: HString) -> Result<Self>
[src]
impl TryFrom<Object> for HString
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Object) -> Result<Self>
[src]
impl TryFrom<bool> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: bool) -> Result<Self>
[src]
impl TryFrom<f32> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: f32) -> Result<Self>
[src]
impl TryFrom<f64> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: f64) -> Result<Self>
[src]
impl TryFrom<i16> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: i16) -> Result<Self>
[src]
impl TryFrom<i32> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: i32) -> Result<Self>
[src]
impl TryFrom<i64> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: i64) -> Result<Self>
[src]
impl TryFrom<u16> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: u16) -> Result<Self>
[src]
impl TryFrom<u32> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: u32) -> Result<Self>
[src]
impl TryFrom<u64> for Object
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: u64) -> Result<Self>
[src]
impl TryFrom<u8> for Object
[src]
Auto Trait Implementations
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,