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