pub enum Token<'t> {
Lit(&'t str),
Var(Var),
}Expand description
A piece of a template’s text as 2.1’s grammar reads it, borrowed from
the text: a run of literal characters, the one brace {{ or }}
writes, or a variable.
Variants§
Trait Implementations§
impl<'t> Copy for Token<'t>
impl<'t> Eq for Token<'t>
impl<'t> StructuralPartialEq for Token<'t>
Auto Trait Implementations§
impl<'t> Forget for Token<'t>
impl<'t> Freeze for Token<'t>
impl<'t> Move 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> UnsafeUnpin 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