pub struct IsDigit<const B: Base = DEFAULT_BASE>;Expand description
Checks whether the given character is a digit in the specified base B.
Trait Implementations§
Source§impl<const B: Base> Ord for IsDigit<B>
impl<const B: Base> Ord for IsDigit<B>
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 B: Base> PartialOrd for IsDigit<B>
impl<const B: Base> PartialOrd for IsDigit<B>
Source§impl<const B: Base> Predicate<char> for IsDigit<B>
impl<const B: Base> Predicate<char> for IsDigit<B>
Source§type Error = NonDigitError
type Error = NonDigitError
The associated error type which is used to represent checks.
Source§fn check(value: &char) -> Result<(), Self::Error>
fn check(value: &char) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl<const B: Base> Copy for IsDigit<B>
impl<const B: Base> Eq for IsDigit<B>
impl<const B: Base> StructuralPartialEq for IsDigit<B>
Auto Trait Implementations§
impl<const B: u32> Freeze for IsDigit<B>
impl<const B: u32> RefUnwindSafe for IsDigit<B>
impl<const B: u32> Send for IsDigit<B>
impl<const B: u32> Sync for IsDigit<B>
impl<const B: u32> Unpin for IsDigit<B>
impl<const B: u32> UnwindSafe for IsDigit<B>
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