pub struct TextTurnReducer<T: Toolset> { /* private fields */ }Implementations§
Source§impl<T> TextTurnReducer<T>where
T: Toolset,
impl<T> TextTurnReducer<T>where
T: Toolset,
pub fn new() -> Self
pub fn state(&self) -> &TextTurnState<T>
pub fn into_state(self) -> TextTurnState<T>
pub fn apply( &mut self, event: &TextTurnEvent<T>, ) -> Result<(), TextTurnReductionError>
pub fn into_result(self) -> Result<TextTurnResult<T>, TextTurnReductionError>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TextTurnReducer<T>
impl<T> !RefUnwindSafe for TextTurnReducer<T>
impl<T> Send for TextTurnReducer<T>
impl<T> Sync for TextTurnReducer<T>
impl<T> Unpin for TextTurnReducer<T>
impl<T> UnsafeUnpin for TextTurnReducer<T>
impl<T> !UnwindSafe for TextTurnReducer<T>
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