pub enum TemplateKind {
NoSubstitution,
Head,
Middle,
Tail,
}Expand description
Which part of a template literal a token is.
Variants§
NoSubstitution
`text` — no substitution.
Head
`text${ — the template continues after the substitution.
Middle
}text${ — middle chunk.
Tail
}text` — last chunk.
Trait Implementations§
Source§impl Clone for TemplateKind
impl Clone for TemplateKind
impl Copy for TemplateKind
Source§impl Debug for TemplateKind
impl Debug for TemplateKind
impl Eq for TemplateKind
Source§impl PartialEq for TemplateKind
impl PartialEq for TemplateKind
impl StructuralPartialEq for TemplateKind
Auto Trait Implementations§
impl Forget for TemplateKind
impl Freeze for TemplateKind
impl Move for TemplateKind
impl RefUnwindSafe for TemplateKind
impl Send for TemplateKind
impl Sync for TemplateKind
impl Unpin for TemplateKind
impl UnsafeUnpin for TemplateKind
impl UnwindSafe for TemplateKind
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