struct MultiCharEqPattern<C: MultiCharEq>(C);
🔬This is a nightly-only experimental API. (
pattern
#27721)Tuple Fields§
§0: C
🔬This is a nightly-only experimental API. (
pattern
#27721)Trait Implementations§
Source§impl<C: MultiCharEq> Pattern for MultiCharEqPattern<C>
impl<C: MultiCharEq> Pattern for MultiCharEqPattern<C>
Source§type Searcher<'a> = MultiCharEqSearcher<'a, C>
type Searcher<'a> = MultiCharEqSearcher<'a, C>
🔬This is a nightly-only experimental API. (
pattern
#27721)Associated searcher for this pattern
Source§fn into_searcher(self, haystack: &str) -> MultiCharEqSearcher<'_, C>
fn into_searcher(self, haystack: &str) -> MultiCharEqSearcher<'_, C>
🔬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: &str) -> bool
fn is_contained_in(self, haystack: &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: &str) -> bool
fn is_prefix_of(self, haystack: &str) -> bool
🔬This is a nightly-only experimental API. (
pattern
#27721)Checks whether the pattern matches at the front of the haystack
Source§fn is_suffix_of<'a>(self, haystack: &'a str) -> boolwhere
Self::Searcher<'a>: ReverseSearcher<'a>,
fn is_suffix_of<'a>(self, haystack: &'a str) -> boolwhere
Self::Searcher<'a>: 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_prefix_of(self, haystack: &str) -> Option<&str>
fn strip_prefix_of(self, haystack: &str) -> Option<&str>
🔬This is a nightly-only experimental API. (
pattern
#27721)Removes the pattern from the front of haystack, if it matches.
Source§fn strip_suffix_of<'a>(self, haystack: &'a str) -> Option<&'a str>where
Self::Searcher<'a>: ReverseSearcher<'a>,
fn strip_suffix_of<'a>(self, haystack: &'a str) -> Option<&'a str>where
Self::Searcher<'a>: ReverseSearcher<'a>,
🔬This is a nightly-only experimental API. (
pattern
#27721)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
#27721)Returns the pattern as utf-8 bytes if possible.
Auto Trait Implementations§
impl<C> Freeze for MultiCharEqPattern<C>where
C: Freeze,
impl<C> RefUnwindSafe for MultiCharEqPattern<C>where
C: RefUnwindSafe,
impl<C> Send for MultiCharEqPattern<C>where
C: Send,
impl<C> Sync for MultiCharEqPattern<C>where
C: Sync,
impl<C> Unpin for MultiCharEqPattern<C>where
C: Unpin,
impl<C> UnsafeUnpin for MultiCharEqPattern<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for MultiCharEqPattern<C>where
C: 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<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more