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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.