Struct swc_ecma_ast::Str [−][src]
Expand description
A string literal.
Note
You have to use StrKind::Synthesized if you modify the value
of Str.
This behavior is for preserving the original source code.
In other words, swc_ecma_codegen
tries to preserve escapes or unicode
characters in the original source code and you can opt-out of this by using
StrKind::Synthesized.
Fields
span: Span
value: JsWord
has_escape: bool
This includes line escape.
kind: StrKind
Implementations
Trait Implementations
fn 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
Auto Trait Implementations
impl RefUnwindSafe for Str
impl UnwindSafe for Str
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more