pub enum Token<'src> {
Code {
contents: &'src str,
},
CodeLine {
closed: bool,
contents: &'src str,
},
Interpolation {
contents: &'src str,
},
InterpolationLine {
closed: bool,
contents: &'src str,
},
Text {
contents: &'src str,
index: usize,
},
}Expand description
Parsed template token.
Variants§
Implementations§
Trait Implementations§
impl<'src> Copy for Token<'src>
impl<'src> StructuralPartialEq for Token<'src>
Auto Trait Implementations§
impl<'src> Freeze for Token<'src>
impl<'src> RefUnwindSafe for Token<'src>
impl<'src> Send for Token<'src>
impl<'src> Sync for Token<'src>
impl<'src> Unpin for Token<'src>
impl<'src> UnwindSafe for Token<'src>
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