#[repr(transparent)]
pub struct IUnknown(_);
Expand description
All COM interfaces (and thus WinRT classes and interfaces) implement
IUnknown
under the hood to provide reference-counted lifetime management as well as the ability
to query for additional interfaces that the object may implement.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
A unique identifier representing this interface.
Attempts to cast the current interface to another interface using
QueryInterface
.
Read more
Attempts to create a
Weak
reference to this object.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface
implementation.
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
Creates an
Interface
by taking ownership of the
raw
COM interface pointer.
Read more
Creates an
Interface
that is valid so long as the
raw
COM interface pointer is valid.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.