swc_ecma_utils::ident

Trait IdentLike

source
pub trait IdentLike:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn from_ident(i: &Ident) -> Self;
    fn to_id(&self) -> Id;
    fn into_id(self) -> Id;
}

Required Methods§

source

fn from_ident(i: &Ident) -> Self

source

fn to_id(&self) -> Id

source

fn into_id(self) -> Id

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IdentLike for (JsWord, SyntaxContext)

source§

fn from_ident(i: &Ident) -> Self

source§

fn to_id(&self) -> Id

source§

fn into_id(self) -> Id

source§

impl IdentLike for BindingIdent

source§

fn from_ident(i: &Ident) -> Self

source§

fn to_id(&self) -> Id

source§

fn into_id(self) -> Id

source§

impl IdentLike for Ident

source§

fn from_ident(i: &Ident) -> Self

source§

fn to_id(&self) -> Id

source§

fn into_id(self) -> Id

source§

impl IdentLike for JsWord

source§

fn from_ident(i: &Ident) -> Self

source§

fn to_id(&self) -> Id

source§

fn into_id(self) -> Id

Implementors§