pub enum Expression {
    Document {
        span: Span,
        executable: Option<String>,
        elements: Vec<Expression>,
    },
    CommentBlock {
        span: Span,
        raw: Vec<String>,
    },
    Variable {
        span: Span,
        comment: Box<Option<Expression>>,
        name: String,
        variable_type: Option<String>,
        default_value: Box<Option<Expression>>,
    },
    DefaultValue {
        span: Span,
        value: String,
    },
}
Expand description

Expression

Used

Variants

Document

Fields

span: Span
executable: Option<String>
elements: Vec<Expression>

CommentBlock

Fields

span: Span
raw: Vec<String>

Variable

Fields

span: Span
comment: Box<Option<Expression>>
name: String
variable_type: Option<String>
default_value: Box<Option<Expression>>

DefaultValue

Fields

span: Span
value: String

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.