Struct namable_closures::closure_rec::ClosureRec [−][src]
pub struct ClosureRec<State, Input, Output> { /* fields omitted */ }
Methods
impl<State, Input, Output> ClosureRec<State, Input, Output>
[src]
impl<State, Input, Output> ClosureRec<State, Input, Output>
pub fn new(func: fn(_: &Self, _: Input) -> Output, s: State) -> Self
[src]
pub fn new(func: fn(_: &Self, _: Input) -> Output, s: State) -> Self
pub fn call_with_state(&self, s: State, i: Input) -> Output
[src]
pub fn call_with_state(&self, s: State, i: Input) -> Output
Trait Implementations
impl<State, Input, Output> Copy for ClosureRec<State, Input, Output> where
State: Copy,
[src]
impl<State, Input, Output> Copy for ClosureRec<State, Input, Output> where
State: Copy,
impl<State, Input, Output> Clone for ClosureRec<State, Input, Output> where
State: Clone,
[src]
impl<State, Input, Output> Clone for ClosureRec<State, Input, Output> where
State: Clone,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<State, Input, Output> StableFnOnce<Input> for ClosureRec<State, Input, Output>
[src]
impl<State, Input, Output> StableFnOnce<Input> for ClosureRec<State, Input, Output>
type Output = Output
fn stable_call_once(self, i: Input) -> Self::Output
[src]
fn stable_call_once(self, i: Input) -> Self::Output
impl<State, Input, Output> StableFnMut<Input> for ClosureRec<State, Input, Output>
[src]
impl<State, Input, Output> StableFnMut<Input> for ClosureRec<State, Input, Output>
fn stable_call_mut(&mut self, i: Input) -> Output
[src]
fn stable_call_mut(&mut self, i: Input) -> Output
impl<State, Input, Output> StableFn<Input> for ClosureRec<State, Input, Output>
[src]
impl<State, Input, Output> StableFn<Input> for ClosureRec<State, Input, Output>
fn stable_call(&self, i: Input) -> Output
[src]
fn stable_call(&self, i: Input) -> Output
Auto Trait Implementations
impl<State, Input, Output> Send for ClosureRec<State, Input, Output> where
State: Send,
impl<State, Input, Output> Send for ClosureRec<State, Input, Output> where
State: Send,
impl<State, Input, Output> Sync for ClosureRec<State, Input, Output> where
State: Sync,
impl<State, Input, Output> Sync for ClosureRec<State, Input, Output> where
State: Sync,