pub enum ExtendedInstanceInterface<C: ComponentInstanceInterface> {
Component(Arc<C>),
AboveRoot(Arc<C::TopInstance>),
}
Expand description
Either a type implementing ComponentInstanceInterface
or its TopInstance
.
Variants§
Component(Arc<C>)
AboveRoot(Arc<C::TopInstance>)
Trait Implementations§
Source§impl<C: Clone + ComponentInstanceInterface> Clone for ExtendedInstanceInterface<C>where
C::TopInstance: Clone,
impl<C: Clone + ComponentInstanceInterface> Clone for ExtendedInstanceInterface<C>where
C::TopInstance: Clone,
Source§fn clone(&self) -> ExtendedInstanceInterface<C>
fn clone(&self) -> ExtendedInstanceInterface<C>
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 moreSource§impl<C: Debug + ComponentInstanceInterface> Debug for ExtendedInstanceInterface<C>where
C::TopInstance: Debug,
impl<C: Debug + ComponentInstanceInterface> Debug for ExtendedInstanceInterface<C>where
C::TopInstance: Debug,
Source§impl<C: ComponentInstanceInterface> From<&ExtendedInstanceInterface<C>> for WeakExtendedInstanceInterface<C>
impl<C: ComponentInstanceInterface> From<&ExtendedInstanceInterface<C>> for WeakExtendedInstanceInterface<C>
Source§fn from(extended: &ExtendedInstanceInterface<C>) -> Self
fn from(extended: &ExtendedInstanceInterface<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for ExtendedInstanceInterface<C>
impl<C> RefUnwindSafe for ExtendedInstanceInterface<C>
impl<C> Send for ExtendedInstanceInterface<C>
impl<C> Sync for ExtendedInstanceInterface<C>
impl<C> Unpin for ExtendedInstanceInterface<C>
impl<C> UnwindSafe for ExtendedInstanceInterface<C>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)