pub struct StateMonad<S: Clone, A: Clone> {
pub description: String,
/* private fields */
}Expand description
State monad: State s a = s -> (a, s).
Fields§
§description: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, A> Freeze for StateMonad<S, A>
impl<S, A> RefUnwindSafe for StateMonad<S, A>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<S, A> Send for StateMonad<S, A>
impl<S, A> Sync for StateMonad<S, A>
impl<S, A> Unpin for StateMonad<S, A>
impl<S, A> UnsafeUnpin for StateMonad<S, A>
impl<S, A> UnwindSafe for StateMonad<S, A>where
S: UnwindSafe,
A: 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