pub struct Matches<S: TypeRegex + ?Sized> { /* private fields */ }Available on crate feature
regex only.Expand description
Checks if the string matches the specified pattern S.
Trait Implementations§
Source§impl<S: Ord + TypeRegex + ?Sized> Ord for Matches<S>
impl<S: Ord + TypeRegex + ?Sized> Ord for Matches<S>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialOrd + TypeRegex + ?Sized> PartialOrd for Matches<S>
impl<S: PartialOrd + TypeRegex + ?Sized> PartialOrd for Matches<S>
Source§impl<T: AsRef<str> + ?Sized, S: TypeRegex + ?Sized> Predicate<T> for Matches<S>
impl<T: AsRef<str> + ?Sized, S: TypeRegex + ?Sized> Predicate<T> for Matches<S>
Source§type Error = MismatchError
type Error = MismatchError
The associated error type which is used to represent checks.
Source§fn check(value: &T) -> Result<(), Self::Error>
fn check(value: &T) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl<S: Copy + TypeRegex + ?Sized> Copy for Matches<S>
impl<S: Eq + TypeRegex + ?Sized> Eq for Matches<S>
impl<S: TypeRegex + ?Sized> StructuralPartialEq for Matches<S>
Auto Trait Implementations§
impl<S> Freeze for Matches<S>where
S: ?Sized,
impl<S> RefUnwindSafe for Matches<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for Matches<S>
impl<S> Sync for Matches<S>
impl<S> Unpin for Matches<S>
impl<S> UnwindSafe for Matches<S>where
S: UnwindSafe + ?Sized,
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