pub struct NodeId { /* private fields */ }Expand description
ID of a signal in the logic network. An ID can point to the output of a node as well as to a primary input or a constant. The ID encodes if the signal is inverted.
Implementations§
Source§impl NodeId
impl NodeId
Sourcepub fn input_index(&self) -> Option<usize>
pub fn input_index(&self) -> Option<usize>
Get the index of the primary input if this node ID represents a primary input.
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Check if this ID points to the constant 0 or 1.
Trait Implementations§
Source§impl EdgeWithInversion for NodeId
impl EdgeWithInversion for NodeId
Source§fn non_inverted(self) -> Self
fn non_inverted(self) -> Self
Make the signal non-inverted.
Source§fn is_inverted(&self) -> bool
fn is_inverted(&self) -> bool
Check if the signal is inverted along the edge.
Source§impl Ord for NodeId
impl Ord for NodeId
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
impl Copy for NodeId
impl Edge for NodeId
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
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