Struct core::str::IsWhitespace
source · struct IsWhitespace;
Trait Implementations§
source§impl Clone for IsWhitespace
impl Clone for IsWhitespace
source§fn clone(&self) -> IsWhitespace
fn clone(&self) -> IsWhitespace
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Fn(char) for IsWhitespace
impl Fn(char) for IsWhitespace
source§impl FnMut(char) for IsWhitespace
impl FnMut(char) for IsWhitespace
Auto Trait Implementations§
impl Freeze for IsWhitespace
impl RefUnwindSafe for IsWhitespace
impl Send for IsWhitespace
impl Sync for IsWhitespace
impl Unpin for IsWhitespace
impl UnwindSafe for IsWhitespace
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<'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
#27721)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
#27721)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
#27721)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
#27721)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
#27721)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
#27721)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
#27721)Removes the pattern from the back of haystack, if it matches.