Skip to main content

Statement

Enum 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 Debug for Statement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Statement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Statement

Source§

impl From<AddEdgeAttribute> for Statement

Source§

fn from(statement: AddEdgeAttribute) -> Statement

Converts to this type from the input type.
Source§

impl From<AddGraphNodeAttribute> for Statement

Source§

fn from(statement: AddGraphNodeAttribute) -> Statement

Converts to this type from the input type.
Source§

impl From<Assign> for Statement

Source§

fn from(statement: Assign) -> Statement

Converts to this type from the input type.
Source§

impl From<CreateEdge> for Statement

Source§

fn from(statement: CreateEdge) -> Statement

Converts to this type from the input type.
Source§

impl From<CreateGraphNode> for Statement

Source§

fn from(statement: CreateGraphNode) -> Statement

Converts to this type from the input type.
Source§

impl From<DeclareImmutable> for Statement

Source§

fn from(statement: DeclareImmutable) -> Statement

Converts to this type from the input type.
Source§

impl From<DeclareMutable> for Statement

Source§

fn from(statement: DeclareMutable) -> Statement

Converts to this type from the input type.
Source§

impl From<ForIn> for Statement

Source§

fn from(statement: ForIn) -> Statement

Converts to this type from the input type.
Source§

impl From<If> for Statement

Source§

fn from(statement: If) -> Statement

Converts to this type from the input type.
Source§

impl From<Print> for Statement

Source§

fn from(statement: Print) -> Statement

Converts to this type from the input type.
Source§

impl From<Scan> for Statement

Source§

fn from(statement: Scan) -> Statement

Converts to this type from the input type.
Source§

impl PartialEq for Statement

Source§

fn eq(&self, other: &Statement) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Statement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.