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)
Trait Implementations
sourceimpl From<AddEdgeAttribute> for Statement
impl From<AddEdgeAttribute> for Statement
sourcefn from(statement: AddEdgeAttribute) -> Statement
fn from(statement: AddEdgeAttribute) -> Statement
Performs the conversion.
sourceimpl From<AddGraphNodeAttribute> for Statement
impl From<AddGraphNodeAttribute> for Statement
sourcefn from(statement: AddGraphNodeAttribute) -> Statement
fn from(statement: AddGraphNodeAttribute) -> Statement
Performs the conversion.
sourceimpl From<CreateEdge> for Statement
impl From<CreateEdge> for Statement
sourcefn from(statement: CreateEdge) -> Statement
fn from(statement: CreateEdge) -> Statement
Performs the conversion.
sourceimpl From<CreateGraphNode> for Statement
impl From<CreateGraphNode> for Statement
sourcefn from(statement: CreateGraphNode) -> Statement
fn from(statement: CreateGraphNode) -> Statement
Performs the conversion.
sourceimpl From<DeclareImmutable> for Statement
impl From<DeclareImmutable> for Statement
sourcefn from(statement: DeclareImmutable) -> Statement
fn from(statement: DeclareImmutable) -> Statement
Performs the conversion.
sourceimpl From<DeclareMutable> for Statement
impl From<DeclareMutable> for Statement
sourcefn from(statement: DeclareMutable) -> Statement
fn from(statement: DeclareMutable) -> Statement
Performs the conversion.
impl Eq for Statement
impl StructuralEq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl !Send for Statement
impl !Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more