pub enum TemplateVar {
Path(Vec<String>),
Bare(String),
ConstRef {
alias: String,
name: String,
},
KeyPath {
base: String,
keys: Vec<String>,
},
Var(String),
}Expand description
One variable read inside a {{ ... }} key: a $a.b path as its
dotted parts, or a bare key as one literal lookup. Call args
contribute their nested $ refs; env keys contribute nothing.
Bare CONST shapes (ConstRef, KeyPath, Var) still classify
here so phases can name them in the $-sigil error; only $
paths ever resolve.
Variants§
Trait Implementations§
Source§impl Clone for TemplateVar
impl Clone for TemplateVar
Source§impl Debug for TemplateVar
impl Debug for TemplateVar
impl Eq for TemplateVar
Source§impl PartialEq for TemplateVar
impl PartialEq for TemplateVar
impl StructuralPartialEq for TemplateVar
Auto Trait Implementations§
impl Forget for TemplateVar
impl Freeze for TemplateVar
impl Move for TemplateVar
impl RefUnwindSafe for TemplateVar
impl Send for TemplateVar
impl Sync for TemplateVar
impl Unpin for TemplateVar
impl UnsafeUnpin for TemplateVar
impl UnwindSafe for TemplateVar
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