pub struct CompositeReducer<State, Action, Event, Effect> { /* private fields */ }Expand description
A Reducer composed of multiple reducers.
Implementations§
Source§impl<State, Action, Event, Effect> CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> CompositeReducer<State, Action, Event, Effect>
Trait Implementations§
Source§impl<State, Action, Event, Effect> Reducer<State, Action, Event, Effect> for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> Reducer<State, Action, Event, Effect> for CompositeReducer<State, Action, Event, Effect>
Source§fn reduce(
&self,
prev_state: &Rc<State>,
action: &Action,
) -> ReducerResult<State, Event, Effect>
fn reduce( &self, prev_state: &Rc<State>, action: &Action, ) -> ReducerResult<State, Event, Effect>
Take an
Action submitted to a store via
Store::dispatch() and modifies the
prev_state, producing a new State, and also producing
events associated with the Action and state modifications
that occurred. Read moreAuto Trait Implementations§
impl<State, Action, Event, Effect> Freeze for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> !RefUnwindSafe for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> !Send for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> !Sync for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> Unpin for CompositeReducer<State, Action, Event, Effect>
impl<State, Action, Event, Effect> !UnwindSafe for CompositeReducer<State, Action, Event, Effect>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self to an optional value of a Properties struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.