pub struct TagToken<'a> { /* fields omitted */ }
An interface to access tokens inside a tag.
Raises an error from this TagToken.
The error message will be based on the expected tokens,
which this structure tracks when using the methods starting
with 'expect'.
For example, if one calls expect_value
and that function fails
to give an Ok
value, calling this would show Expected Value
on the error message.
Raises an error from this TagToken.
The error will have the given error message.
Tries to obtain a FilterChain
from this token.
Tries to obtain a value from this token.
Do not confuse this value with liquid-value
's Value
.
In this context, value refers to either a literal value or a variable.
Tries to obtain a Variable
from this token.
Tries to obtain an identifier from this token.
The identifier is returned as a str.
Tries to obtain a literal value from this token.
The value is returned as a Value
.
Tries to obtain a range from this token.
The range is returned as a pair (Expression, Expression)
.
Returns Ok
if and only if the tokens' str is equal to the given str.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Any for T where T: Any, | |