Enum syntax::ast::Line [] [src]

pub enum Line {
    Label(Label),
    Assignment(Assignment),
    Dim(Dim),
    FunctionCall(FunctionCall),
    Statement(Statement),
}

A single line.

Variants

Methods

impl Line
[src]

Try to parse the provided string as this type of AST node.

Trait Implementations

impl Debug for Line
[src]

Formats the value using the given formatter. Read more

impl Clone for Line
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Line
[src]

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

This method tests for !=.

impl HeapSizeOf for Line
[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

impl From<Label> for Line
[src]

Performs the conversion.

impl From<Assignment> for Line
[src]

Performs the conversion.

impl From<Dim> for Line
[src]

Performs the conversion.

impl From<FunctionCall> for Line
[src]

Performs the conversion.

impl From<Statement> for Line
[src]

Performs the conversion.

impl AstNode for Line
[src]

Auto Trait Implementations

impl Send for Line

impl Sync for Line