pub struct Always;Expand description
A specification that always returns true.
Trait Implementations§
impl Copy for Always
impl Eq for Always
Source§impl<T: ?Sized> Specification<T> for Always
impl<T: ?Sized> Specification<T> for Always
Source§fn is_satisfied_by(&self, _: &T) -> bool
fn is_satisfied_by(&self, _: &T) -> bool
Returns whether
candidate satisfies this rule.Source§fn and<Other>(self, other: Other) -> And<Self, Other>where
Self: Sized,
Other: Specification<T>,
fn and<Other>(self, other: Other) -> And<Self, Other>where
Self: Sized,
Other: Specification<T>,
Combines this rule with
other using short-circuiting logical AND. Read moreimpl StructuralPartialEq for Always
Auto Trait Implementations§
impl Freeze for Always
impl RefUnwindSafe for Always
impl Send for Always
impl Sync for Always
impl Unpin for Always
impl UnsafeUnpin for Always
impl UnwindSafe for Always
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