[−][src]Struct serde_closure::FnMut
A struct representing a serializable closure, created by the
FnMut
macro. Implements std::ops::FnMut
, serde's Serialize
and
Deserialize
, and various convenience traits.
It is generic over E
: a tuple of the environment variables passed to the
FnMut
macro; and F
: the signature of closure as coerced to
a function pointer.
See the readme for examples.
Trait Implementations
impl<E, T> Copy for FnMut<E, T> where
E: Copy,
[src]
E: Copy,
impl<E, T, F, O> FnMut<T> for FnMut<E, F> where
F: FnOnce(&mut E, T) -> O,
[src]
F: FnOnce(&mut E, T) -> O,
impl<E, T> Ord for FnMut<E, T> where
E: Ord,
[src]
E: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl<E, T> Clone for FnMut<E, T> where
E: Clone,
[src]
E: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E, T> PartialEq<FnMut<E, T>> for FnMut<E, T> where
E: PartialEq,
[src]
E: PartialEq,
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<E, T, F, O> FnOnce<T> for FnMut<E, F> where
F: FnOnce(&mut E, T) -> O,
[src]
F: FnOnce(&mut E, T) -> O,
type Output = O
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, args: T) -> Self::Output
[src]
impl<E, T> Eq for FnMut<E, T> where
E: Eq,
[src]
E: Eq,
impl<E, T> PartialOrd<FnMut<E, T>> for FnMut<E, T> where
E: PartialOrd,
[src]
E: PartialOrd,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<E, T> Debug for FnMut<E, T> where
E: Debug,
[src]
E: Debug,
impl<E, T> Hash for FnMut<E, T> where
E: Hash,
[src]
E: Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<E, F> Serialize for FnMut<E, F> where
E: Serialize,
F: 'static,
[src]
E: Serialize,
F: 'static,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, E, F> Deserialize<'de> for FnMut<E, F> where
E: Deserialize<'de>,
F: 'static,
[src]
E: Deserialize<'de>,
F: 'static,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<E, F> Sync for FnMut<E, F> where
E: Sync,
F: Sync,
E: Sync,
F: Sync,
impl<E, F> Unpin for FnMut<E, F> where
E: Unpin,
F: Unpin,
E: Unpin,
F: Unpin,
impl<E, F> Send for FnMut<E, F> where
E: Send,
F: Send,
E: Send,
F: Send,
impl<E, F> UnwindSafe for FnMut<E, F> where
E: UnwindSafe,
F: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
impl<E, F> RefUnwindSafe for FnMut<E, F> where
E: RefUnwindSafe,
F: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<'a, F> Pattern<'a> for F where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
type Searcher = CharPredicateSearcher<'a, F>
🔬 This is a nightly-only experimental API. (pattern
)
API not fully fleshed out and ready to be stabilized
Associated searcher for this pattern
fn into_searcher(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>
[src]
fn is_contained_in(self, haystack: &'a str) -> bool
[src]
fn is_prefix_of(self, haystack: &'a str) -> bool
[src]
fn is_suffix_of(self, haystack: &'a str) -> bool where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
[src]
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,