pub struct Clause { /* private fields */ }Implementations§
Source§impl Clause
impl Clause
pub fn new(clause_type: ClauseType) -> Self
pub fn and() -> Self
pub fn or() -> Self
pub fn clause_type(self, ct: ClauseType) -> Self
pub fn atoms(&self) -> &BTreeSet<Atom>
pub fn atoms_mut(&mut self) -> &mut BTreeSet<Atom>
pub fn insert(self, stats: StatSet, atom: Atom) -> Self
pub fn atom(self, atom: Atom) -> Self
pub fn add_atom(&mut self, atom: Atom)
pub fn satisfied_by(&self, stats: &StatMap) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl From<Clause> for Requirement
impl From<Clause> for Requirement
impl Eq for Clause
impl StructuralPartialEq for Clause
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnwindSafe for Clause
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