Struct bracket::parser::ast::Call[][src]

pub struct Call<'source> { /* fields omitted */ }
Expand description

Call is a variable interpolation, helper invocation or partial render.

A call has zero or more arguments and optional hash parameters.

The partial flag is used to indicate that this call should be rendered as a partial.

Implementations

Create an open call.

If it is correctly terminated the parser will call exit() to terminate the call statement.

Determine if the target for this call is empty.

Get the call target.

Determine if a call target is available.

Set the call target.

Add an argument to this call.

Get the list of arguments.

Add a hash parameter to this call.

Get the map of hash parameters.

Determine if this call has the partial flag.

Set the partial flag.

Determine if this call has a conditional flag (the else keyword).

Set the conditional flag.

Determine if the content of this call should be escaped.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Get the string for the open tag.

Get the string for the close tag. Read more

Get the span for the open tag.

Get the span for the close tag.

Determine if this element has been closed.

Mark this element as correctly terminated.

The full byte range for this element; if the element is not closed only the open span is returned. Read more

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.