pub struct U128Eq<const N: u128>;Expand description
Checks whether the given value is equal to N.
Trait Implementations§
Source§impl<const N: u128> Ord for U128Eq<N>
impl<const N: u128> Ord for U128Eq<N>
Source§impl<const N: u128> PartialOrd for U128Eq<N>
impl<const N: u128> PartialOrd for U128Eq<N>
Source§impl<const N: u128> Predicate<u128> for U128Eq<N>
impl<const N: u128> Predicate<u128> for U128Eq<N>
Source§type Error = U128EqError
type Error = U128EqError
The associated error type which is used to represent checks.
Source§fn check(value: &u128) -> Result<(), Self::Error>
fn check(value: &u128) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl<const N: u128> Copy for U128Eq<N>
impl<const N: u128> Eq for U128Eq<N>
impl<const N: u128> StructuralPartialEq for U128Eq<N>
Auto Trait Implementations§
impl<const N: u128> Freeze for U128Eq<N>
impl<const N: u128> RefUnwindSafe for U128Eq<N>
impl<const N: u128> Send for U128Eq<N>
impl<const N: u128> Sync for U128Eq<N>
impl<const N: u128> Unpin for U128Eq<N>
impl<const N: u128> UnwindSafe for U128Eq<N>
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