[][src]Struct swc_ecma_ast::Str

pub struct Str {
    pub span: Span,
    pub value: JsWord,
    pub has_escape: bool,
}

Fields

span: Spanvalue: JsWordhas_escape: bool

This includes line escape.

Methods

impl Str[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl AstNode for Str[src]

impl Clone for Str[src]

impl Debug for Str[src]

impl<'de> Deserialize<'de> for Str[src]

impl From<Str> for Expr[src]

impl From<Str> for Lit[src]

impl From<Str> for PropName[src]

impl From<Str> for TsLit[src]

impl From<Str> for TsEnumMemberId[src]

impl From<Str> for TsModuleName[src]

impl PartialEq<Str> for Str[src]

impl Serialize for Str[src]

impl Spanned for Str[src]

impl StructuralPartialEq for Str[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.