swc_core::ecma::utils::ident

Trait 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, SyntaxContext)

Implementors§