pub struct IsAscii;Expand description
Checks if the string is valid ASCII.
Trait Implementations§
Source§impl Ord for IsAscii
impl Ord for IsAscii
Source§impl PartialOrd for IsAscii
impl PartialOrd for IsAscii
Source§impl<T: AsRef<str> + ?Sized> Predicate<T> for IsAscii
impl<T: AsRef<str> + ?Sized> Predicate<T> for IsAscii
Source§type Error = IsAsciiError
type Error = IsAsciiError
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 Copy for IsAscii
impl Eq for IsAscii
impl StructuralPartialEq for IsAscii
Auto Trait Implementations§
impl Freeze for IsAscii
impl RefUnwindSafe for IsAscii
impl Send for IsAscii
impl Sync for IsAscii
impl Unpin for IsAscii
impl UnwindSafe for IsAscii
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