Struct swc_ecma_ast::Str
source · [−]Expand description
A string literal.
Fields
span: Span
value: JsWord
raw: Option<Atom>
Use None
value only for transformations to avoid recalculate escaped
characters in strings
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Str
impl<'de> Deserialize<'de> for Str
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for Str
impl EqIgnoreSpan for Str
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Atom<JsWordStaticSet>> for Str
impl From<Atom<JsWordStaticSet>> for Str
sourceimpl From<Str> for ModuleExportName
impl From<Str> for ModuleExportName
sourceimpl From<Str> for TsEnumMemberId
impl From<Str> for TsEnumMemberId
sourceimpl From<Str> for TsModuleName
impl From<Str> for TsModuleName
impl Eq for Str
impl StructuralEq for Str
impl StructuralPartialEq for Str
Auto Trait Implementations
impl RefUnwindSafe for Str
impl Send for Str
impl Sync for Str
impl Unpin for Str
impl UnwindSafe for Str
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