Trait swc_core::ecma::utils::ident::IdentLike

pub trait IdentLike: Sized + Send + Sync + 'static {
    // Required methods
    fn from_ident(i: &Ident) -> Self;
    fn to_id(&self) -> (Atom, SyntaxContext);
    fn into_id(self) -> (Atom, SyntaxContext);
}
Available on crate features __ecma and __utils only.

Required Methods§

fn from_ident(i: &Ident) -> Self

fn to_id(&self) -> (Atom, SyntaxContext)

fn into_id(self) -> (Atom, SyntaxContext)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl IdentLike for (Atom, Span)

§

fn from_ident(i: &Ident) -> (Atom, Span)

§

fn to_id(&self) -> (Atom, SyntaxContext)

§

fn into_id(self) -> (Atom, SyntaxContext)

§

impl IdentLike for (Atom, SyntaxContext)

Implementors§