pub struct Lit(/* private fields */);
Implementations§
Source§impl Lit
impl Lit
pub fn new(var: Var, polarity: bool) -> Self
pub fn var(&self) -> Var
pub fn polarity(&self) -> bool
pub fn constant(polarity: bool) -> Self
pub fn is_constant(&self, polarity: bool) -> bool
pub fn not_if(&self, c: bool) -> Self
pub fn cube(&self) -> LitVec
pub fn map_var(&self, map: impl Fn(Var) -> Var) -> Self
Trait Implementations§
Source§impl FromIterator<Lit> for LitVec
impl FromIterator<Lit> for LitVec
Source§impl Ord for Lit
impl Ord for Lit
Source§impl PartialOrd for Lit
impl PartialOrd for Lit
impl Copy for Lit
impl Eq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl Freeze for Lit
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
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