pub struct Pattern { /* private fields */ }Expand description
Represent a pattern literal (the RHS of the like operator) Also provides an implementation of the Display trait as well as a wildcard matching method.
Implementations§
Trait Implementations§
Source§impl From<&[PatternElem]> for Pattern
impl From<&[PatternElem]> for Pattern
Source§fn from(value: &[PatternElem]) -> Self
fn from(value: &[PatternElem]) -> Self
Converts to this type from the input type.
Source§impl From<Vec<PatternElem>> for Pattern
impl From<Vec<PatternElem>> for Pattern
Source§fn from(value: Vec<PatternElem>) -> Self
fn from(value: Vec<PatternElem>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<PatternElem> for Pattern
impl FromIterator<PatternElem> for Pattern
Source§fn from_iter<T: IntoIterator<Item = PatternElem>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternElem>>(iter: T) -> Self
Creates a value from an iterator. Read more
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more