pub struct GraphNode {
    pub attributes: Attributes,
    /* private fields */
}
Expand description

A node in a graph

Fields

attributes: Attributes

The set of attributes associated with this graph node

Implementations

Adds an edge to this node. There can be at most one edge connecting any two graph nodes; the result indicates whether the edge is new (Ok) or already existed (Err). In either case, you also get a mutable reference to the Edge instance for the edge.

Returns a reference to an outgoing edge from this node, if it exists.

Returns a mutable reference to an outgoing edge from this node, if it exists.

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

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.