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