pub struct NotEqual<const N: u8>;Expand description
Checks whether the given value is not equal to N.
Trait Implementations§
Source§impl<const N: u8> Ord for NotEqual<N>
impl<const N: u8> Ord for NotEqual<N>
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 N: u8> PartialOrd for NotEqual<N>
impl<const N: u8> PartialOrd for NotEqual<N>
Source§impl<const N: u8> Predicate<u8> for NotEqual<N>
impl<const N: u8> Predicate<u8> for NotEqual<N>
Source§type Error = NotEqualError
type Error = NotEqualError
The associated error type which is used to represent checks.
Source§fn check(value: &u8) -> Result<(), Self::Error>
fn check(value: &u8) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreSource§fn expect(formatter: &mut Formatter<'_>) -> Result
fn expect(formatter: &mut Formatter<'_>) -> Result
Formats the expectation of the predicate. Read more
Source§fn expect_code(formatter: &mut Formatter<'_>) -> Result
fn expect_code(formatter: &mut Formatter<'_>) -> Result
Formats the expectation code of the predicate. Read more
Source§fn is_satisfied(value: &T) -> bool
fn is_satisfied(value: &T) -> bool
Checks whether the given value satisfies the predicate. Read more
Source§fn expected_code() -> ExpectedCode<T, Self>
fn expected_code() -> ExpectedCode<T, Self>
Returns the expectation code of the predicate.
impl<const N: u8> Copy for NotEqual<N>
impl<const N: u8> Eq for NotEqual<N>
impl<const N: u8> StructuralPartialEq for NotEqual<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for NotEqual<N>
impl<const N: u8> RefUnwindSafe for NotEqual<N>
impl<const N: u8> Send for NotEqual<N>
impl<const N: u8> Sync for NotEqual<N>
impl<const N: u8> Unpin for NotEqual<N>
impl<const N: u8> UnwindSafe for NotEqual<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