pub struct AigEdge { /* private fields */ }Expand description
A directed edge representing a fanin for AIG nodes.
The edge can carry an inverter according to the value of complement.
For example:
use mutaig::{Aig, AigEdge, AigNode};
let mut aig = Aig::new();
let node_false = aig.add_node(AigNode::False).unwrap();
let fanin_false = AigEdge::new(node_false.clone(), false);
let fanin_true = AigEdge::new(node_false.clone(), true);
assert_eq!(fanin_false, !fanin_true);Implementations§
Source§impl AigEdge
impl AigEdge
pub fn new(node: AigNodeRef, complement: bool) -> Self
pub fn get_node(&self) -> AigNodeRef
pub fn get_complement(&self) -> bool
Trait Implementations§
impl Eq for AigEdge
Auto Trait Implementations§
impl Freeze for AigEdge
impl !RefUnwindSafe for AigEdge
impl !Send for AigEdge
impl !Sync for AigEdge
impl Unpin for AigEdge
impl !UnwindSafe for AigEdge
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