pub enum SubstringMatchKind {
Prefix,
Suffix,
FirstOccurrence,
Anywhere,
}Expand description
Kind of substring match.
Variants§
Prefix
Match the prefix of the string.
Suffix
Match the suffix of the string.
FirstOccurrence
Match the first occurrence in the string.
Anywhere
Match all instances in the string.
Trait Implementations§
Source§impl Clone for SubstringMatchKind
impl Clone for SubstringMatchKind
Source§fn clone(&self) -> SubstringMatchKind
fn clone(&self) -> SubstringMatchKind
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SubstringMatchKind
impl RefUnwindSafe for SubstringMatchKind
impl Send for SubstringMatchKind
impl Sync for SubstringMatchKind
impl Unpin for SubstringMatchKind
impl UnwindSafe for SubstringMatchKind
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