pub struct NodeId(/* private fields */);
Expand description
A node identifier is a numeric value assigned by the Net implementation and which is guaranteed unique across node types (and arcs if they are identified).
Implementations§
Source§impl NodeId
impl NodeId
Sourcepub fn new_unchecked(id: NodeIdValue) -> Self
pub fn new_unchecked(id: NodeIdValue) -> Self
Construct a new NodeId from a given numeric value. This is inherently unsafe outside of the libraries themselves. However, it can be useful in testing and so it remains public.
pub fn as_place_string(&self) -> String
pub fn as_transition_string(&self) -> String
Trait Implementations§
Source§impl AsRef<u64> for NodeId
impl AsRef<u64> for NodeId
Source§fn as_ref(&self) -> &NodeIdValue
fn as_ref(&self) -> &NodeIdValue
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<NodeId> for NodeIdValue
impl From<NodeId> for NodeIdValue
Source§impl Ord for NodeId
impl Ord for NodeId
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
impl Copy 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