pub struct Dnf(pub Vec<Conjunction>);Expand description
A disjunction of conjunctions of constraints: true if any of the clauses contain constraints all of which are true.
Tuple Fields§
§0: Vec<Conjunction>Implementations§
Source§impl Dnf
impl Dnf
Sourcepub fn trivially_false() -> Self
pub fn trivially_false() -> Self
The trivially false disjunction, unprovable no matter what.
Sourcepub fn trivially_true() -> Self
pub fn trivially_true() -> Self
The trivially true disjunction, provable with no evidence.
Sourcepub fn is_trivially_true(&self) -> bool
pub fn is_trivially_true(&self) -> bool
Tests if a conjunction is trivially true (i.e. requires no evidence to be true).
Sourcepub fn only_if(conj: Conjunction) -> Self
pub fn only_if(conj: Conjunction) -> Self
Construct a disjunction from a single conjunction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dnf
impl RefUnwindSafe for Dnf
impl Send for Dnf
impl Sync for Dnf
impl Unpin for Dnf
impl UnwindSafe for Dnf
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