logo
pub struct Node<NodeId = IdentityWithInt, EdgeId = IdentityWithInt, Kind = NodeKindless> where
    NodeId: IdentityInterface,
    EdgeId: IdentityInterface,
    Kind: NodeKindInterface
{ pub out_nodes: IndexSet<NodeId, RandomState>, pub out_edges: IndexSet<EdgeId, RandomState>, pub kind: Kind, pub id: NodeId, }
Expand description

Canonical implementation of node.

Fields

out_nodes: IndexSet<NodeId, RandomState>

Input node.

out_edges: IndexSet<EdgeId, RandomState>

Input node.

kind: Kind

Kind of the node.

id: NodeId

Identifier.

Implementations

Construct an instance of the node with id.

Trait Implementations

Formats the value using the given formatter. Read more

Id of the node.

Get id.

Constructor without arguments.

Constructor without arguments.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Performs the conversion.