[][src]Struct spair::Context

pub struct Context<'a, C: Component> {
    pub element: ElementUpdater<'a, C>,
    pub comp: &'a Comp<C>,
    pub child_components: &'a C::Components,
}

Fields

element: ElementUpdater<'a, C>comp: &'a Comp<C>child_components: &'a C::Components

Implementations

impl<'a, C: Component> Context<'a, C>[src]

pub fn new(
    comp: &'a Comp<C>,
    element: ElementUpdater<'a, C>,
    child_components: &'a C::Components
) -> Self
[src]

pub fn into_comp_element(self) -> (&'a Comp<C>, ElementUpdater<'a, C>)[src]

pub fn into_parts(
    self
) -> (&'a Comp<C>, ElementUpdater<'a, C>, &'a C::Components)
[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for Context<'a, C>

impl<'a, C> !Send for Context<'a, C>

impl<'a, C> !Sync for Context<'a, C>

impl<'a, C> Unpin for Context<'a, C>

impl<'a, C> !UnwindSafe for Context<'a, C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.