Struct stack_graphs::graph::NodeID [−][src]
#[repr(C)]pub struct NodeID { /* fields omitted */ }
Expand description
Uniquely identifies a node in a stack graph.
Each node (except for the root node and jump to scope node) lives in a file, and has a local ID that must be unique within its file.
Implementations
Creates a new file-local node ID.
Returns whether this ID refers to the singleton jump to scope node.
Returns the file that this node belongs to. Returns None
for the singleton root and
jump to scope nodes, which belong to all files.
Returns the local ID of this node within its file. Panics if this node ID refers to the singleton root or jump to scope nodes.
Returns whether this node belongs to a particular file. Always returns true
for the
singleton root and jump to scope nodes, which belong to all files.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for NodeID
impl UnwindSafe for NodeID
Blanket Implementations
Mutably borrows from an owned value. Read more