pub struct TemplateLiteral {
pub quasis: Vec<TemplateChunk>,
pub expressions: Vec<Expr>,
}Expand description
A template literal: quasis.len() == expressions.len() + 1.
Fields§
§quasis: Vec<TemplateChunk>Literal chunks, in source order.
expressions: Vec<Expr>Substitution expressions, in source order.
Trait Implementations§
Source§impl Clone for TemplateLiteral
impl Clone for TemplateLiteral
Source§impl Debug for TemplateLiteral
impl Debug for TemplateLiteral
Source§impl PartialEq for TemplateLiteral
impl PartialEq for TemplateLiteral
impl StructuralPartialEq for TemplateLiteral
Auto Trait Implementations§
impl Forget for TemplateLiteral
impl Freeze for TemplateLiteral
impl Move for TemplateLiteral
impl RefUnwindSafe for TemplateLiteral
impl Send for TemplateLiteral
impl Sync for TemplateLiteral
impl Unpin for TemplateLiteral
impl UnsafeUnpin for TemplateLiteralwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TemplateChunk>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
impl UnwindSafe for TemplateLiteralwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<Class>: UnwindSafe,
BoxRaw<TemplateLiteral>: UnwindSafe,
BoxRaw<Pattern>: 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