pub struct FnSpec<Args, Output> { /* private fields */ }
Trait Implementations§
Auto Trait Implementations§
impl<Args, Output> Freeze for FnSpec<Args, Output>
impl<Args, Output> RefUnwindSafe for FnSpec<Args, Output>where
Args: RefUnwindSafe,
Output: RefUnwindSafe,
impl<Args, Output> Send for FnSpec<Args, Output>
impl<Args, Output> Sync for FnSpec<Args, Output>
impl<Args, Output> Unpin for FnSpec<Args, Output>
impl<Args, Output> UnwindSafe for FnSpec<Args, Output>where
Args: UnwindSafe,
Output: 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
source§impl<Args, Output, F> FnWithRequiresEnsures<Args, Output> for F
impl<Args, Output, F> FnWithRequiresEnsures<Args, Output> for F
source§impl<'a, F> Pattern<'a> for F
impl<'a, F> Pattern<'a> for F
§type Searcher = CharPredicateSearcher<'a, F>
type Searcher = CharPredicateSearcher<'a, F>
🔬This is a nightly-only experimental API. (
pattern
)Associated searcher for this pattern
source§fn 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
)Constructs the associated searcher from
self
and the haystack
to search in.source§fn 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
source§fn 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
source§fn 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.
source§fn 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
source§fn 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.