pub struct ClosureMutRec<State, Input, Output> { /* private fields */ }Implementations§
Source§impl<State, Input, Output> ClosureMutRec<State, Input, Output>
impl<State, Input, Output> ClosureMutRec<State, Input, Output>
pub fn new(func: fn(&mut Self, Input) -> Output, s: State) -> Self
pub fn call_with_state(&self, s: State, i: Input) -> Output
Trait Implementations§
Source§impl<State, Input, Output> Clone for ClosureMutRec<State, Input, Output>where
State: Clone,
impl<State, Input, Output> Clone for ClosureMutRec<State, Input, Output>where
State: Clone,
Source§impl<State, Input, Output> StableFn<Input> for ClosureMutRec<State, Input, Output>where
State: Copy,
impl<State, Input, Output> StableFn<Input> for ClosureMutRec<State, Input, Output>where
State: Copy,
fn stable_call(&self, i: Input) -> Output
Source§impl<State, Input, Output> StableFnMut<Input> for ClosureMutRec<State, Input, Output>
impl<State, Input, Output> StableFnMut<Input> for ClosureMutRec<State, Input, Output>
fn stable_call_mut(&mut self, i: Input) -> Output
Source§impl<State, Input, Output> StableFnOnce<Input> for ClosureMutRec<State, Input, Output>
impl<State, Input, Output> StableFnOnce<Input> for ClosureMutRec<State, Input, Output>
impl<State, Input, Output> Copy for ClosureMutRec<State, Input, Output>where
State: Copy,
Auto Trait Implementations§
impl<State, Input, Output> Freeze for ClosureMutRec<State, Input, Output>where
State: Freeze,
impl<State, Input, Output> RefUnwindSafe for ClosureMutRec<State, Input, Output>where
State: RefUnwindSafe,
impl<State, Input, Output> Send for ClosureMutRec<State, Input, Output>where
State: Send,
impl<State, Input, Output> Sync for ClosureMutRec<State, Input, Output>where
State: Sync,
impl<State, Input, Output> Unpin for ClosureMutRec<State, Input, Output>where
State: Unpin,
impl<State, Input, Output> UnwindSafe for ClosureMutRec<State, Input, Output>where
State: 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