pub struct AigLit(/* private fields */);Expand description
A literal of an and-inverter graph: node n as 2n, its complement as 2n + 1, the AIGER encoding. Node 0 is
the constant false.
Implementations§
Source§impl AigLit
impl AigLit
pub const FALSE: AigLit
pub const TRUE: AigLit
pub fn new(node: u32, complemented: bool) -> AigLit
pub fn node(self) -> u32
pub fn is_complemented(self) -> bool
pub fn code(self) -> u32
Sourcepub fn with_phase(self, flip: bool) -> AigLit
pub fn with_phase(self, flip: bool) -> AigLit
This literal, complemented when flip is set.
Trait Implementations§
Source§impl Ord for AigLit
impl Ord for AigLit
Source§impl PartialOrd for AigLit
impl PartialOrd for AigLit
impl Copy for AigLit
impl Eq for AigLit
impl StructuralPartialEq for AigLit
Auto Trait Implementations§
impl Freeze for AigLit
impl RefUnwindSafe for AigLit
impl Send for AigLit
impl Sync for AigLit
impl Unpin for AigLit
impl UnsafeUnpin for AigLit
impl UnwindSafe for AigLit
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