Enum dot_parser::ast::Stmt[][src]

pub enum Stmt<'a, A = (&'a str, &'a str)> {
    NodeStmt(NodeStmt<'a, A>),
    EdgeStmt(EdgeStmt<'a, A>),
    AttrStmt(AttrStmt<'a, A>),
    IDEq(&'a str, &'a str),
}
Expand description

A statement of the graph. This corresponds to the stmt non-terminal of the grammar.

Variants

NodeStmt(NodeStmt<'a, A>)

A node statement.

Tuple Fields of NodeStmt

0: NodeStmt<'a, A>
EdgeStmt(EdgeStmt<'a, A>)

An edge statement.

Tuple Fields of EdgeStmt

0: EdgeStmt<'a, A>
AttrStmt(AttrStmt<'a, A>)

An attribute statement.

Tuple Fields of AttrStmt

0: AttrStmt<'a, A>
IDEq(&'a str, &'a str)

An alias statement.

Tuple Fields of IDEq

0: &'a str1: &'a str

Implementations

Returns true if self is a NodeStmt variant.

Returns Some(&node) if &self if a &NodeStmt(node), and None otherwise.

Returns Some(node) if self if a NodeStmt(node), and None otherwise.

Returns true if self is a EdgeStmt variant.

Returns Some(&edge) if &self if a &EdgeStmt(edge), and None otherwise.

Returns Some(edge) if self if a EdgeStmt(edge), and None otherwise.

Returns true if self is a AttrStmt variant.

Returns Some(&attr) if &self if a &AttrStmt(attr), and None otherwise.

Returns Some(attr) if self if a AttrStmt(attr), and None otherwise.

Returns true if self is a IDEq variant.

Returns Some((&id1, &id2)) if &self if a &IDEq(id1, id2) and None otherwise.

Trait Implementations

Formats the value using the given formatter. Read more

Creates a value from an iterator. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. 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

Performs the conversion.

Performs the conversion.

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.