pub struct ActionReducer<A: Address, Sends, New> { /* private fields */ }Expand description
A left fold over Bombay actions.
Implementations§
Source§impl<A: Address, Sends: SendAlgebra, New> ActionReducer<A, Sends, New>
impl<A: Address, Sends: SendAlgebra, New> ActionReducer<A, Sends, New>
pub fn new() -> Self
Sourcepub fn push<Birth: BirthMode<Child = New>>(
&mut self,
actions: Actions<A, Never, Sends, Birth>,
) -> ControlFlow<Exit<A>>
pub fn push<Birth: BirthMode<Child = New>>( &mut self, actions: Actions<A, Never, Sends, Birth>, ) -> ControlFlow<Exit<A>>
Append one action value. Order is preserved and the first stop verdict short-circuits the surrounding fold.
pub fn finish(self, exit: Option<Exit<A>>) -> Folded<A, Sends, New>
Trait Implementations§
Source§impl<A: Address, Sends: SendAlgebra, New> Default for ActionReducer<A, Sends, New>
impl<A: Address, Sends: SendAlgebra, New> Default for ActionReducer<A, Sends, New>
Auto Trait Implementations§
impl<A, Sends, New> Freeze for ActionReducer<A, Sends, New>where
Sends: Freeze,
impl<A, Sends, New> RefUnwindSafe for ActionReducer<A, Sends, New>
impl<A, Sends, New> Send for ActionReducer<A, Sends, New>
impl<A, Sends, New> Sync for ActionReducer<A, Sends, New>
impl<A, Sends, New> Unpin for ActionReducer<A, Sends, New>
impl<A, Sends, New> UnsafeUnpin for ActionReducer<A, Sends, New>where
Sends: UnsafeUnpin,
impl<A, Sends, New> UnwindSafe for ActionReducer<A, Sends, New>
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