pub enum Token<'t> {
Text(&'t str),
Variable(Identifier<'t>),
Special(Special),
}Expand description
Part of an Expression; a constant string, or a variable for later expansion to a string
Variants§
Text(&'t str)
A constant string of plain text
Variable(Identifier<'t>)
The name of a variable
Special(Special)
A special variable whose value is provided by the current scope
Trait Implementations§
Source§impl<'t> Ord for Token<'t>
impl<'t> Ord for Token<'t>
Source§impl<'t> PartialOrd for Token<'t>
impl<'t> PartialOrd for Token<'t>
impl<'t> Eq for Token<'t>
impl<'t> StructuralPartialEq for Token<'t>
Auto Trait Implementations§
impl<'t> Freeze for Token<'t>
impl<'t> RefUnwindSafe for Token<'t>
impl<'t> Send for Token<'t>
impl<'t> Sync for Token<'t>
impl<'t> Unpin for Token<'t>
impl<'t> UnwindSafe for Token<'t>
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