pub struct TemplateChunk {
pub cooked: Option<String>,
pub raw: String,
pub tail: bool,
}Expand description
One chunk of a TemplateLiteral.
Fields§
§cooked: Option<String>Escape-expanded text; None when the chunk has an invalid escape
sequence (legal in tagged templates only, where it becomes undefined).
raw: StringSource text, verbatim.
tail: boolWhether this chunk ends with the closing backtick.
Trait Implementations§
Source§impl Clone for TemplateChunk
impl Clone for TemplateChunk
Source§impl Debug for TemplateChunk
impl Debug for TemplateChunk
impl Eq for TemplateChunk
Source§impl PartialEq for TemplateChunk
impl PartialEq for TemplateChunk
impl StructuralPartialEq for TemplateChunk
Auto Trait Implementations§
impl Forget for TemplateChunk
impl Freeze for TemplateChunk
impl Move for TemplateChunk
impl RefUnwindSafe for TemplateChunk
impl Send for TemplateChunk
impl Sync for TemplateChunk
impl Unpin for TemplateChunk
impl UnsafeUnpin for TemplateChunk
impl UnwindSafe for TemplateChunk
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