Struct resast::expr::TemplateElement
source · [−]Expand description
The text part of a TemplateLiteral
Fields
tail: bool
cooked: Cow<'a, str>
The non-quoted version
raw: Cow<'a, str>
The quoted version
Implementations
sourceimpl<'a> TemplateElement<'a>
impl<'a> TemplateElement<'a>
Trait Implementations
sourceimpl<'a> Clone for TemplateElement<'a>
impl<'a> Clone for TemplateElement<'a>
sourcefn clone(&self) -> TemplateElement<'a>
fn clone(&self) -> TemplateElement<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TemplateElement<'a>
impl<'a> Debug for TemplateElement<'a>
sourceimpl<'a> From<TemplateElement<'a>> for TemplateElement<'a>
impl<'a> From<TemplateElement<'a>> for TemplateElement<'a>
sourcefn from(other: TemplateElement<'a>) -> Self
fn from(other: TemplateElement<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<TemplateElement<'a>> for TemplateElement<'a>
impl<'a> PartialEq<TemplateElement<'a>> for TemplateElement<'a>
sourcefn eq(&self, other: &TemplateElement<'a>) -> bool
fn eq(&self, other: &TemplateElement<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for TemplateElement<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TemplateElement<'a>
impl<'a> Send for TemplateElement<'a>
impl<'a> Sync for TemplateElement<'a>
impl<'a> Unpin for TemplateElement<'a>
impl<'a> UnwindSafe for TemplateElement<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more