[][src]Struct sit_core::reducers::ChainedReducer

pub struct ChainedReducer<R1: Reducer, R2: Reducer>(_, _);

Chained reducer (consists of two reducers)

Will apply first and then second reducer to a given state when used as a reducer itself

Methods

impl<R1: Reducer, R2: Reducer> ChainedReducer<R1, R2>
[src]

Returns a new chain reducer

Trait Implementations

impl<T, I, R1: Reducer<State = T, Item = I>, R2: Reducer<State = T, Item = I>> Reducer for ChainedReducer<R1, R2>
[src]

State type

Item type

Takes current state, item and returns new state

Chains two reducers together sequentially

Auto Trait Implementations

impl<R1, R2> Send for ChainedReducer<R1, R2> where
    R1: Send,
    R2: Send

impl<R1, R2> Sync for ChainedReducer<R1, R2> where
    R1: Sync,
    R2: Sync

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Same for T

Should always be Self