Struct win_sys::IActivationFactory
source · [−]#[repr(transparent)]pub struct IActivationFactory(_);Expand description
WinRT classes have a supporting factory object that implements IActivationFactory to create a new
instance of the WinRT class with some default state. IActivationFactory represents the
IActivationFactory
interface.
Implementations
sourceimpl IActivationFactory
impl IActivationFactory
sourcepub fn activate_instance<I>(&self) -> Result<I, Error> where
I: Interface,
pub fn activate_instance<I>(&self) -> Result<I, Error> where
I: Interface,
Creates an instance of the WinRT class associated with the factory object.
The activate_instance method corresponds to the “default constructor” in languages like C# and C++.
Trait Implementations
sourceimpl Clone for IActivationFactory
impl Clone for IActivationFactory
sourcepub fn clone(&self) -> IActivationFactory
pub fn clone(&self) -> IActivationFactory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for IActivationFactory
impl Debug for IActivationFactory
sourceimpl Interface for IActivationFactory
impl Interface for IActivationFactory
sourceimpl PartialEq<IActivationFactory> for IActivationFactory
impl PartialEq<IActivationFactory> for IActivationFactory
sourcepub fn eq(&self, other: &IActivationFactory) -> bool
pub fn eq(&self, other: &IActivationFactory) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &IActivationFactory) -> bool
pub fn ne(&self, other: &IActivationFactory) -> bool
This method tests for !=.
impl Eq for IActivationFactory
impl StructuralEq for IActivationFactory
impl StructuralPartialEq for IActivationFactory
Auto Trait Implementations
impl RefUnwindSafe for IActivationFactory
impl !Send for IActivationFactory
impl !Sync for IActivationFactory
impl Unpin for IActivationFactory
impl UnwindSafe for IActivationFactory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more