Struct closures::RecClosureMut
[−]
[src]
pub struct RecClosureMut<S, R> { /* fields omitted */ }
Methods
impl<S, R> RecClosureMut<S, R>
[src]
fn new(state: S, f: fn(_: &mut RecClosureMut<S, R>) -> R) -> Self
fn state(&self) -> &S
fn state_mut(&mut self) -> &mut S
fn into_state(self) -> S
Trait Implementations
impl<S, R> FnOnce<()> for RecClosureMut<S, R>
[src]
type Output = R
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, (): ()) -> Self::Output
🔬 This is a nightly-only experimental API. (
fn_traits
)This is called when the call operator is used.
impl<S, R> FnMut<()> for RecClosureMut<S, R>
[src]
extern "rust-call" fn call_mut(&mut self, (): ()) -> Self::Output
🔬 This is a nightly-only experimental API. (
fn_traits
)This is called when the call operator is used.
impl<S, R> PartialEq for RecClosureMut<S, R> where
S: PartialEq,
[src]
S: PartialEq,
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<S, R> Eq for RecClosureMut<S, R> where
S: Eq,
[src]
S: Eq,
impl<S, R> Copy for RecClosureMut<S, R> where
S: Copy,
[src]
S: Copy,
impl<S, R> Clone for RecClosureMut<S, R> where
S: Clone,
[src]
S: Clone,
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more