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 TemplateVarwhere
RawVecInner: Send,
impl Sync for TemplateVarwhere
RawVecInner: Sync,
impl Unpin for TemplateVar
impl UnsafeUnpin for TemplateVarwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for TemplateVarwhere
RawVecInner: UnwindSafe,
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