pub struct StartsWith<P: TypeStr + ?Sized> { /* private fields */ }Expand description
Checks if the string starts with the specified prefix P.
Implementations§
Trait Implementations§
Source§impl<T: AsRef<str> + ?Sized, P: TypeStr + ?Sized> Predicate<T> for StartsWith<P>
impl<T: AsRef<str> + ?Sized, P: TypeStr + ?Sized> Predicate<T> for StartsWith<P>
Auto Trait Implementations§
impl<P> Freeze for StartsWith<P>where
P: ?Sized,
impl<P> RefUnwindSafe for StartsWith<P>where
P: RefUnwindSafe + ?Sized,
impl<P> Send for StartsWith<P>
impl<P> Sync for StartsWith<P>
impl<P> Unpin for StartsWith<P>
impl<P> UnsafeUnpin for StartsWith<P>where
P: ?Sized,
impl<P> UnwindSafe for StartsWith<P>where
P: 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.