Enum bracket::parser::ast::ParameterValue[][src]

pub enum ParameterValue<'source> {
    Path(Path<'source>),
    Json {
        source: &'source str,
        value: Value,
        span: Range<usize>,
        line: Range<usize>,
    },
    SubExpr(Call<'source>),
}
Expand description

Parameter values can be used as arguments or hash values.

Variants

Path(Path<'source>)

A parameter that should resolve to a runtime variable.

Tuple Fields of Path

0: Path<'source>
Json

A literal JSON value.

Fields of Json

source: &'source str

The underlying template source.

value: Value

The literal JSON value.

span: Range<usize>

The byte span for the value.

line: Range<usize>

The line range for the value.

SubExpr(Call<'source>)

A sub-expression to be invoked at runtime to determine the value.

Tuple Fields of SubExpr

0: Call<'source>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Reference to the line range for the node.

Mutable reference to the line range for the node.

Set the end of the lines range.

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

This method tests for !=.

String slice of the full span for this node.

The underlying template source.

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

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

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.