pub struct True;Expand description
Represents predicates that are always satisfied.
Trait Implementations§
Source§impl Ord for True
impl Ord for True
Source§impl PartialOrd for True
impl PartialOrd for True
Source§impl<T: ?Sized> Predicate<T> for True
impl<T: ?Sized> Predicate<T> for True
Source§type Error = NeverError
type Error = NeverError
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 True
impl Eq for True
impl StructuralPartialEq for True
Auto Trait Implementations§
impl Freeze for True
impl RefUnwindSafe for True
impl Send for True
impl Sync for True
impl Unpin for True
impl UnwindSafe for True
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