Struct FnSpec
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<F> Pattern for F
impl<F> Pattern for F
Source§type Searcher<'a> = CharPredicateSearcher<'a, F>
type Searcher<'a> = CharPredicateSearcher<'a, F>
🔬This is a nightly-only experimental API. (
pattern
)Associated searcher for this pattern
Source§fn into_searcher<'a>(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>
fn into_searcher<'a>(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<'a>(self, haystack: &'a str) -> bool
fn is_contained_in<'a>(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<'a>(self, haystack: &'a str) -> bool
fn is_prefix_of<'a>(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<'a>(self, haystack: &'a str) -> Option<&'a str>
fn strip_prefix_of<'a>(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<'a>(self, haystack: &'a str) -> boolwhere
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
fn is_suffix_of<'a>(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<'a>(self, haystack: &'a str) -> Option<&'a str>where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
fn strip_suffix_of<'a>(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.
Source§fn as_utf8_pattern(&self) -> Option<Utf8Pattern<'_>>
fn as_utf8_pattern(&self) -> Option<Utf8Pattern<'_>>
🔬This is a nightly-only experimental API. (
pattern
)Returns the pattern as utf-8 bytes if possible.