oxc_ecmascript

Trait ToJsString

Source
pub trait ToJsString<'a> {
    // Required method
    fn to_js_string(&self) -> Option<Cow<'a, str>>;
}
Expand description

Required Methods§

Source

fn to_js_string(&self) -> Option<Cow<'a, str>>

Implementations on Foreign Types§

Source§

impl<'a> ToJsString<'a> for Expression<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for ArrayExpression<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for IdentifierReference<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for ObjectExpression<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for TemplateLiteral<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for UnaryExpression<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for BigIntLiteral<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for BooleanLiteral

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for NullLiteral

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for NumericLiteral<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Source§

impl<'a> ToJsString<'a> for StringLiteral<'a>

Source§

fn to_js_string(&self) -> Option<Cow<'a, str>>

Implementors§