pub struct StartsWith<S: TypeStr + ?Sized> { /* private fields */ }Expand description
Checks if the string starts with the specified prefix S.
Trait Implementations§
Source§impl<S: Clone + TypeStr + ?Sized> Clone for StartsWith<S>
impl<S: Clone + TypeStr + ?Sized> Clone for StartsWith<S>
Source§fn clone(&self) -> StartsWith<S>
fn clone(&self) -> StartsWith<S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Default + TypeStr + ?Sized> Default for StartsWith<S>
impl<S: Default + TypeStr + ?Sized> Default for StartsWith<S>
Source§fn default() -> StartsWith<S>
fn default() -> StartsWith<S>
Returns the “default value” for a type. Read more
Source§impl<S: Ord + TypeStr + ?Sized> Ord for StartsWith<S>
impl<S: Ord + TypeStr + ?Sized> Ord for StartsWith<S>
Source§fn cmp(&self, other: &StartsWith<S>) -> Ordering
fn cmp(&self, other: &StartsWith<S>) -> Ordering
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 StartsWith<S>
impl<S: PartialOrd + TypeStr + ?Sized> PartialOrd for StartsWith<S>
Source§impl<T: AsRef<str> + ?Sized, S: TypeStr + ?Sized> Predicate<T> for StartsWith<S>
impl<T: AsRef<str> + ?Sized, S: TypeStr + ?Sized> Predicate<T> for StartsWith<S>
Source§type Error = StartsWithError
type Error = StartsWithError
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 StartsWith<S>
impl<S: Eq + TypeStr + ?Sized> Eq for StartsWith<S>
impl<S: TypeStr + ?Sized> StructuralPartialEq for StartsWith<S>
Auto Trait Implementations§
impl<S> Freeze for StartsWith<S>where
S: ?Sized,
impl<S> RefUnwindSafe for StartsWith<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for StartsWith<S>
impl<S> Sync for StartsWith<S>
impl<S> Unpin for StartsWith<S>
impl<S> UnwindSafe for StartsWith<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