Trait IdentExt

Source
pub trait IdentExt: Sealed {
    // Required method
    fn new_on_call_site(ident: &str) -> Ident;
}
Expand description

Extension of a syn::Ident.

Required Methods§

Source

fn new_on_call_site(ident: &str) -> Ident

Creates a new syn::Ident out of the given string value with a Span::call_site.

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.

Implementations on Foreign Types§

Source§

impl Ident for Ident

Source§

fn new_on_call_site(string: &str) -> Self

Implementors§