Struct rocket_dyn_templates::tera::ast::Expr [−][src]
pub struct Expr { pub val: ExprVal, pub negated: bool, pub filters: Vec<FunctionCall, Global>, }
Expand description
An expression is a value that can be negated and followed by optional filters
Fields
val: ExprVal
The expression we are evaluating
negated: bool
Is it using not
?
filters: Vec<FunctionCall, Global>
List of filters used on that value
Implementations
Create a new negated Expr
Create a new basic Expr with some filters
Check if the expr has a default filter as first filter
Check if the last filter is safe
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl UnwindSafe for Expr
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V