pub struct EndsWith<S: TypeStr + ?Sized> { /* private fields */ }Expand description
Checks if the string ends with the specified suffix S.
Trait Implementations§
Source§impl<S: Ord + TypeStr + ?Sized> Ord for EndsWith<S>
impl<S: Ord + TypeStr + ?Sized> Ord for EndsWith<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 + TypeStr + ?Sized> PartialOrd for EndsWith<S>
impl<S: PartialOrd + TypeStr + ?Sized> PartialOrd for EndsWith<S>
Source§impl<T: AsRef<str> + ?Sized, S: TypeStr + ?Sized> Predicate<T> for EndsWith<S>
impl<T: AsRef<str> + ?Sized, S: TypeStr + ?Sized> Predicate<T> for EndsWith<S>
Source§type Error = EndsWithError
type Error = EndsWithError
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 + TypeStr + ?Sized> Copy for EndsWith<S>
impl<S: Eq + TypeStr + ?Sized> Eq for EndsWith<S>
impl<S: TypeStr + ?Sized> StructuralPartialEq for EndsWith<S>
Auto Trait Implementations§
impl<S> Freeze for EndsWith<S>where
S: ?Sized,
impl<S> RefUnwindSafe for EndsWith<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for EndsWith<S>
impl<S> Sync for EndsWith<S>
impl<S> Unpin for EndsWith<S>
impl<S> UnwindSafe for EndsWith<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