pub struct Disjunction(pub bool);Expand description
The boolean disjunction (∨) monoid: identity false, combine = ||. A bounded semilattice.
Tuple Fields§
§0: boolTrait Implementations§
impl BoundedSemilattice for Disjunction
Source§impl Clone for Disjunction
impl Clone for Disjunction
Source§fn clone(&self) -> Disjunction
fn clone(&self) -> Disjunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl CommutativeMonoid for Disjunction
impl Copy for Disjunction
Source§impl Debug for Disjunction
impl Debug for Disjunction
impl Eq for Disjunction
impl Idempotent for Disjunction
Source§impl Monoid for Disjunction
impl Monoid for Disjunction
Source§impl PartialEq for Disjunction
impl PartialEq for Disjunction
Source§fn eq(&self, other: &Disjunction) -> bool
fn eq(&self, other: &Disjunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Disjunction
Auto Trait Implementations§
impl Freeze for Disjunction
impl RefUnwindSafe for Disjunction
impl Send for Disjunction
impl Sync for Disjunction
impl Unpin for Disjunction
impl UnsafeUnpin for Disjunction
impl UnwindSafe for Disjunction
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