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>
An alias statement.
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.
Trait Implementations
Creates a value from an iterator. Read more
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