pub struct LazyVTable<C: BaseComponent> { /* private fields */ }Expand description
Component vtable for a component.
Return LazyVTable::<YourComponent>::vtable() from your implementation of
LazyComponent::fetch after resolving it.
Implementations§
Source§impl<C: BaseComponent> LazyVTable<C>
impl<C: BaseComponent> LazyVTable<C>
Sourcepub fn vtable() -> LazyVTable<C>
pub fn vtable() -> LazyVTable<C>
Returns the singleton vtable for a component.
Return this from LazyComponent::fetch for your lazy component.
Trait Implementations§
Source§impl<C: BaseComponent> Clone for LazyVTable<C>
impl<C: BaseComponent> Clone for LazyVTable<C>
impl<C: BaseComponent> Copy for LazyVTable<C>
Auto Trait Implementations§
impl<C> Freeze for LazyVTable<C>where
&'static CompVTableImpl<C>: Freeze,
impl<C> RefUnwindSafe for LazyVTable<C>where
&'static CompVTableImpl<C>: RefUnwindSafe,
impl<C> Send for LazyVTable<C>where
&'static CompVTableImpl<C>: Send,
impl<C> Sync for LazyVTable<C>where
&'static CompVTableImpl<C>: Sync,
impl<C> Unpin for LazyVTable<C>where
&'static CompVTableImpl<C>: Unpin,
impl<C> UnsafeUnpin for LazyVTable<C>where
&'static CompVTableImpl<C>: UnsafeUnpin,
impl<C> UnwindSafe for LazyVTable<C>where
&'static CompVTableImpl<C>: UnwindSafe,
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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,
impl<T> HasAllProps<(), T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.