pub struct ClosureStateReducer<State, Update, F> { /* private fields */ }Expand description
A custom StateReducer backed by a closure.
Implementations§
Trait Implementations§
Source§impl<State, Update, F> StateReducer<State, Update> for ClosureStateReducer<State, Update, F>
impl<State, Update, F> StateReducer<State, Update> for ClosureStateReducer<State, Update, F>
Auto Trait Implementations§
impl<State, Update, F> Freeze for ClosureStateReducer<State, Update, F>where
F: Freeze,
impl<State, Update, F> RefUnwindSafe for ClosureStateReducer<State, Update, F>where
F: RefUnwindSafe,
impl<State, Update, F> Send for ClosureStateReducer<State, Update, F>where
F: Send,
impl<State, Update, F> Sync for ClosureStateReducer<State, Update, F>where
F: Sync,
impl<State, Update, F> Unpin for ClosureStateReducer<State, Update, F>where
F: Unpin,
impl<State, Update, F> UnsafeUnpin for ClosureStateReducer<State, Update, F>where
F: UnsafeUnpin,
impl<State, Update, F> UnwindSafe for ClosureStateReducer<State, Update, F>where
F: UnwindSafe,
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