Struct panoramix::CompCtx[][src]

pub struct CompCtx<'a> { /* fields omitted */ }

Context type passed to all components when building them.

Implementations

impl<'a> CompCtx<'a>[src]

pub fn use_local_state<T: 'static>(&self) -> &'a T[src]

Returns the local state of the current component instance.

Panics if the generic type doesn’t match the component’s local state type.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CompCtx<'a>

impl<'a> !Send for CompCtx<'a>

impl<'a> !Sync for CompCtx<'a>

impl<'a> Unpin for CompCtx<'a>

impl<'a> !UnwindSafe for CompCtx<'a>

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> Instrument for T[src]

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

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

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.