pub enum AttrStmt<A> {
    Graph(A),
    Node(A),
    Edge(A),
}
Expand description

An AttrStmt, i.e. a statement that applies to either the whole graph, all edges, or all nodes. Note that, in a canonical graph, AttrStmts contain a single statement.

Variants

Graph(A)

An AttrStmt that applies to the whole graph.

Node(A)

An AttrStmt that applies to all nodes of the graph.

Edge(A)

An AttrStmt that applies to all edges of the graph.

Trait Implementations

Formats the value using the given formatter. Read more

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.