Struct carbide_core::state::mapped_state::MappedState[][src]

pub struct MappedState<T, U, GS> where
    T: Serialize + Clone + Debug,
    U: Serialize + Clone + Debug,
    GS: GlobalState
{ /* fields omitted */ }

Implementations

impl<T: Serialize + Clone + Debug, U: Serialize + Clone + Debug, GS: GlobalState> MappedState<T, U, GS>[src]

pub fn new_local(
    state: Box<dyn State<U, GS>>,
    map: fn(_: &U) -> T,
    start: T
) -> MappedState<T, U, GS>
[src]

pub fn new(
    state: Box<dyn State<U, GS>>,
    map: fn(_: &U) -> T,
    start: T
) -> MappedState<T, U, GS>
[src]

Trait Implementations

impl<T: Clone, U: Clone, GS: Clone> Clone for MappedState<T, U, GS> where
    T: Serialize + Clone + Debug,
    U: Serialize + Clone + Debug,
    GS: GlobalState
[src]

impl<T: Serialize + Clone + Debug, U: Serialize + Clone + Debug + DeserializeOwned, GS: GlobalState> State<T, GS> for MappedState<T, U, GS>[src]

Auto Trait Implementations

impl<T, U, GS> !RefUnwindSafe for MappedState<T, U, GS>[src]

impl<T, U, GS> !Send for MappedState<T, U, GS>[src]

impl<T, U, GS> !Sync for MappedState<T, U, GS>[src]

impl<T, U, GS> Unpin for MappedState<T, U, GS> where
    T: Unpin
[src]

impl<T, U, GS> !UnwindSafe for MappedState<T, U, GS>[src]

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> DynClone for T where
    T: Clone
[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<X, T, GS> StateExt<T, GS> for X where
    X: 'static + State<T, GS>,
    T: 'static + Clone + Debug + DeserializeOwned + Serialize,
    GS: GlobalState
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,