pub struct StartsWithChar<const C: char>;Expand description
Checks if the string starts with the specified character C.
Trait Implementations§
Source§impl<const C: char> Clone for StartsWithChar<C>
impl<const C: char> Clone for StartsWithChar<C>
Source§fn clone(&self) -> StartsWithChar<C>
fn clone(&self) -> StartsWithChar<C>
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<const C: char> Debug for StartsWithChar<C>
impl<const C: char> Debug for StartsWithChar<C>
Source§impl<const C: char> Default for StartsWithChar<C>
impl<const C: char> Default for StartsWithChar<C>
Source§fn default() -> StartsWithChar<C>
fn default() -> StartsWithChar<C>
Returns the “default value” for a type. Read more
Source§impl<const C: char> Hash for StartsWithChar<C>
impl<const C: char> Hash for StartsWithChar<C>
Source§impl<const C: char> Ord for StartsWithChar<C>
impl<const C: char> Ord for StartsWithChar<C>
Source§fn cmp(&self, other: &StartsWithChar<C>) -> Ordering
fn cmp(&self, other: &StartsWithChar<C>) -> 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<const C: char> PartialEq for StartsWithChar<C>
impl<const C: char> PartialEq for StartsWithChar<C>
Source§impl<const C: char> PartialOrd for StartsWithChar<C>
impl<const C: char> PartialOrd for StartsWithChar<C>
Source§impl<T: AsRef<str> + ?Sized, const C: char> Predicate<T> for StartsWithChar<C>
impl<T: AsRef<str> + ?Sized, const C: char> Predicate<T> for StartsWithChar<C>
Source§type Error = StartsWithCharError
type Error = StartsWithCharError
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<const C: char> Copy for StartsWithChar<C>
impl<const C: char> Eq for StartsWithChar<C>
impl<const C: char> StructuralPartialEq for StartsWithChar<C>
Auto Trait Implementations§
impl<const C: char> Freeze for StartsWithChar<C>
impl<const C: char> RefUnwindSafe for StartsWithChar<C>
impl<const C: char> Send for StartsWithChar<C>
impl<const C: char> Sync for StartsWithChar<C>
impl<const C: char> Unpin for StartsWithChar<C>
impl<const C: char> UnwindSafe for StartsWithChar<C>
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