pub struct MacroParam {
pub name: String,
pub default: Option<Expr>,
}Expand description
One formal parameter in a {% macro %} header (a or a = expr).
Fields§
§name: String§default: Option<Expr>Default expression evaluated in the caller’s scope when the argument is omitted.
Trait Implementations§
Source§impl Clone for MacroParam
impl Clone for MacroParam
Source§fn clone(&self) -> MacroParam
fn clone(&self) -> MacroParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MacroParam
impl Debug for MacroParam
Source§impl PartialEq for MacroParam
impl PartialEq for MacroParam
impl StructuralPartialEq for MacroParam
Auto Trait Implementations§
impl Freeze for MacroParam
impl RefUnwindSafe for MacroParam
impl Send for MacroParam
impl Sync for MacroParam
impl Unpin for MacroParam
impl UnwindSafe for MacroParam
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