Enum tree_sitter_graph::ast::Statement
source · pub enum Statement {
DeclareImmutable(DeclareImmutable),
DeclareMutable(DeclareMutable),
Assign(Assign),
CreateGraphNode(CreateGraphNode),
AddGraphNodeAttribute(AddGraphNodeAttribute),
CreateEdge(CreateEdge),
AddEdgeAttribute(AddEdgeAttribute),
Scan(Scan),
Print(Print),
If(If),
ForIn(ForIn),
}
Expand description
A statement that can appear in a graph DSL stanza
Variants§
DeclareImmutable(DeclareImmutable)
DeclareMutable(DeclareMutable)
Assign(Assign)
CreateGraphNode(CreateGraphNode)
AddGraphNodeAttribute(AddGraphNodeAttribute)
CreateEdge(CreateEdge)
AddEdgeAttribute(AddEdgeAttribute)
Scan(Scan)
Print(Print)
If(If)
ForIn(ForIn)
Implementations§
Trait Implementations§
source§impl From<AddEdgeAttribute> for Statement
impl From<AddEdgeAttribute> for Statement
source§fn from(statement: AddEdgeAttribute) -> Statement
fn from(statement: AddEdgeAttribute) -> Statement
Converts to this type from the input type.
source§impl From<AddGraphNodeAttribute> for Statement
impl From<AddGraphNodeAttribute> for Statement
source§fn from(statement: AddGraphNodeAttribute) -> Statement
fn from(statement: AddGraphNodeAttribute) -> Statement
Converts to this type from the input type.
source§impl From<CreateEdge> for Statement
impl From<CreateEdge> for Statement
source§fn from(statement: CreateEdge) -> Statement
fn from(statement: CreateEdge) -> Statement
Converts to this type from the input type.
source§impl From<CreateGraphNode> for Statement
impl From<CreateGraphNode> for Statement
source§fn from(statement: CreateGraphNode) -> Statement
fn from(statement: CreateGraphNode) -> Statement
Converts to this type from the input type.
source§impl From<DeclareImmutable> for Statement
impl From<DeclareImmutable> for Statement
source§fn from(statement: DeclareImmutable) -> Statement
fn from(statement: DeclareImmutable) -> Statement
Converts to this type from the input type.
source§impl From<DeclareMutable> for Statement
impl From<DeclareMutable> for Statement
source§fn from(statement: DeclareMutable) -> Statement
fn from(statement: DeclareMutable) -> Statement
Converts to this type from the input type.
source§impl PartialEq for Statement
impl PartialEq for Statement
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more