Enum dprint_swc_ecma_ast_view::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
pub fn clone(&self) -> StrKind
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StrKind
impl Debug for StrKind
impl Default for StrKind
impl<'de> Deserialize<'de> for StrKind
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StrKind, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<StrKind, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for StrKind
impl EqIgnoreSpan for StrKind
Always returns true as this is not a data of a string literal.
pub fn eq_ignore_span(&self, &StrKind) -> bool
impl<V> FoldWith<V> for StrKind where
V: Fold,
V: Fold,
impl Hash for StrKind
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StrKind> for StrKind
impl Serialize for StrKind
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for StrKind
impl StructuralPartialEq for StrKind
impl<V> VisitAllWith<V> for StrKind where
V: VisitAll,
V: VisitAll,
pub fn visit_all_with(&self, _parent: &(dyn Node + 'static), v: &mut V)
pub fn visit_all_children_with(&self, _visitor: &mut V)
impl<V> VisitMutWith<V> for StrKind where
V: VisitMut,
V: VisitMut,
pub fn visit_mut_with(&mut self, v: &mut V)
pub fn visit_mut_children_with(&mut self, _visitor: &mut V)
impl<V> VisitWith<V> for StrKind where
V: Visit,
V: Visit,
pub fn visit_with(&self, _parent: &(dyn Node + 'static), v: &mut V)
pub fn visit_children_with(&self, _visitor: &mut V)
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> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
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>,