pub struct Maj3Node { /* private fields */ }Expand description
Node in the majority-inverter graph.
Trait Implementations§
Source§impl IntoIterator for Maj3Node
impl IntoIterator for Maj3Node
Source§impl MutNetworkNode for Maj3Node
impl MutNetworkNode for Maj3Node
Source§impl NetworkNode for Maj3Node
impl NetworkNode for Maj3Node
Source§fn num_inputs(&self) -> usize
fn num_inputs(&self) -> usize
Get the number of inputs into this node.
Source§fn function(&self) -> SmallTruthTable
fn function(&self) -> SmallTruthTable
Get the logic function of the node.
Source§fn normalized(self) -> SimplifyResult<Self, Self::NodeId>
fn normalized(self) -> SimplifyResult<Self, Self::NodeId>
Bring the node into a canonical form by reordering and inverting the inputs (if possible).
This increases the effectiveness of structural hashing. Read more
Source§impl NetworkNodeWithReferenceCount for Maj3Node
impl NetworkNodeWithReferenceCount for Maj3Node
Source§fn num_references(&self) -> usize
fn num_references(&self) -> usize
Get the number of references to this node.
Source§impl Ord for Maj3Node
impl Ord for Maj3Node
Source§impl PartialOrd for Maj3Node
impl PartialOrd for Maj3Node
impl Copy for Maj3Node
impl Eq for Maj3Node
impl StructuralPartialEq for Maj3Node
Auto Trait Implementations§
impl Freeze for Maj3Node
impl RefUnwindSafe for Maj3Node
impl Send for Maj3Node
impl Sync for Maj3Node
impl Unpin for Maj3Node
impl UnwindSafe for Maj3Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more