Struct serde_closure::structs::FnMut
source · pub struct FnMut<F> { /* private fields */ }
Expand description
A struct representing a serializable closure, created by the
FnMut
macro. Implements traits::FnMut
(and std::ops::FnMut
on nightly), Debug
, Serialize
and
Deserialize
, and various convenience
traits.
See the readme for examples.
Trait Implementations
sourceimpl<'de, F> Deserialize<'de> for FnMut<F>where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for FnMut<F>where
F: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<F: Ord> Ord for FnMut<F>
impl<F: Ord> Ord for FnMut<F>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<F: PartialEq> PartialEq<FnMut<F>> for FnMut<F>
impl<F: PartialEq> PartialEq<FnMut<F>> for FnMut<F>
sourceimpl<F: PartialOrd> PartialOrd<FnMut<F>> for FnMut<F>
impl<F: PartialOrd> PartialOrd<FnMut<F>> for FnMut<F>
sourcefn partial_cmp(&self, other: &FnMut<F>) -> Option<Ordering>
fn partial_cmp(&self, other: &FnMut<F>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<F: Copy> Copy for FnMut<F>
impl<F: Eq> Eq for FnMut<F>
impl<F> StructuralEq for FnMut<F>
impl<F> StructuralPartialEq for FnMut<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for FnMut<F>where
F: RefUnwindSafe,
impl<F> Send for FnMut<F>where
F: Send,
impl<F> Sync for FnMut<F>where
F: Sync,
impl<F> Unpin for FnMut<F>where
F: Unpin,
impl<F> UnwindSafe for FnMut<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, F> Pattern<'a> for Fwhere
F: FnMut(char) -> bool,
impl<'a, F> Pattern<'a> for Fwhere
F: FnMut(char) -> bool,
type Searcher = CharPredicateSearcher<'a, F>
type Searcher = CharPredicateSearcher<'a, F>
🔬This is a nightly-only experimental API. (
pattern
)Associated searcher for this pattern
sourcefn into_searcher(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>
fn into_searcher(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>
🔬This is a nightly-only experimental API. (
pattern
)sourcefn is_contained_in(self, haystack: &'a str) -> bool
fn is_contained_in(self, haystack: &'a str) -> bool
🔬This is a nightly-only experimental API. (
pattern
)Checks whether the pattern matches anywhere in the haystack
sourcefn is_prefix_of(self, haystack: &'a str) -> bool
fn is_prefix_of(self, haystack: &'a str) -> bool
🔬This is a nightly-only experimental API. (
pattern
)Checks whether the pattern matches at the front of the haystack
sourcefn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>
fn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>
🔬This is a nightly-only experimental API. (
pattern
)Removes the pattern from the front of haystack, if it matches.
sourcefn is_suffix_of(self, haystack: &'a str) -> boolwhere
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
fn is_suffix_of(self, haystack: &'a str) -> boolwhere
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
🔬This is a nightly-only experimental API. (
pattern
)Checks whether the pattern matches at the back of the haystack
sourcefn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str>where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
fn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str>where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
🔬This is a nightly-only experimental API. (
pattern
)Removes the pattern from the back of haystack, if it matches.