pub struct EndsWith<S: TypeStr + ?Sized> { /* private fields */ }Expand description
Checks if the string ends with the specified suffix S.
Implementations§
Trait Implementations§
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>
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> UnsafeUnpin for EndsWith<S>where
S: ?Sized,
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
Source§impl<T, P> PredicateExpected<T> for P
impl<T, P> PredicateExpected<T> for P
Source§fn expected() -> Expected<T, Self>
fn expected() -> Expected<T, Self>
Returns the
Expected<T, Self> value used for formatting.