pub struct Set {
pub key: String,
pub value: Expr,
pub global: bool,
}Expand description
Set a variable in the context {% set val = "hey" %}
Fields§
§key: StringThe name for that value in the context
value: ExprThe value to assign
global: boolWhether we want to set the variable globally or locally global_set is only useful in loops
Trait Implementations§
impl StructuralPartialEq for Set
Auto Trait Implementations§
impl Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more