[−][src]Enum swc_ecma_ast::StrKind
THis enum determines how string literal should be printed.
Variants
Span of string points to original source code, and codegen should use it. Note: Giving wrong value to this field will result in invalid codegen.
Fields of Normal
contains_quote: bool
Does span of this string literal contains quote?
True for string literals generated by parser, false for string literals generated by various passes.
If the span of string does not point a string literal, mainly because this string is synthesized, this variant should be used.
Trait Implementations
impl Clone for StrKind
[src]
impl Copy for StrKind
[src]
impl Debug for StrKind
[src]
impl Default for StrKind
[src]
impl<'de> Deserialize<'de> for StrKind
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for StrKind
[src]
impl Hash for StrKind
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StrKind> for StrKind
[src]
impl Serialize for StrKind
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for StrKind
[src]
impl StructuralPartialEq for StrKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for StrKind
[src]
impl Send for StrKind
[src]
impl Sync for StrKind
[src]
impl Unpin for StrKind
[src]
impl UnwindSafe for StrKind
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,