[][src]Struct spair::Comp

pub struct Comp<C: Component>(_);

Implementations

impl<C: Component> Comp<C>[src]

pub fn update<Cl>(&self, fn_update: &impl Fn(&mut C) -> Cl) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn update_arg<T, Cl>(&self, arg: T, fn_update: &impl Fn(&mut C, T) -> Cl) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn update_child_comps<Cl>(
    &self,
    fn_update: &impl Fn(&mut C, &mut C::Components) -> Cl
) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn update_child_comps_arg<T, Cl>(
    &self,
    arg: T,
    fn_update: &impl Fn(&mut C, &mut C::Components, T) -> Cl
) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn callback<Cl>(&self, fn_update: impl Fn(&mut C) -> Cl) -> impl Fn() where
    Cl: Into<Checklist<C>>, 
[src]

pub fn callback_arg<T, Cl>(
    &self,
    fn_update: impl Fn(&mut C, T) -> Cl
) -> impl Fn(T) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn callback_child_comps<Cl>(
    &self,
    fn_update: impl Fn(&mut C, &mut C::Components) -> Cl
) -> impl Fn() where
    Cl: Into<Checklist<C>>, 
[src]

pub fn callback_child_comps_arg<T, Cl>(
    &self,
    fn_update: impl Fn(&mut C, &mut C::Components, T) -> Cl
) -> impl Fn(T) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn handler<T, Cl>(&self, fn_update: impl Fn(&mut C) -> Cl) -> impl Fn(T) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn handler_arg<T, Cl>(
    &self,
    fn_update: impl Fn(&mut C, T) -> Cl
) -> impl Fn(T) where
    Cl: Into<Checklist<C>>, 
[src]

pub fn handler_child_comps<T, Cl>(
    &self,
    fn_update: impl Fn(&mut C, &mut C::Components) -> Cl
) -> impl Fn(T) where
    Cl: Into<Checklist<C>>, 
[src]

Trait Implementations

impl<C: Component> Clone for Comp<C>[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for Comp<C>

impl<C> !Send for Comp<C>

impl<C> !Sync for Comp<C>

impl<C> Unpin for Comp<C>

impl<C> !UnwindSafe for Comp<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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.