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.
impl<'source> Call<'source>
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.
Determine if a call target is available.
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.
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.
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 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 !=
.
impl<'source> Slice<'source> for Call<'source>
String slice of the full span for this node.
The underlying template source.
impl<'source> Eq for Call<'source>
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.