Skip to main content

AsName

Trait AsName 

pub trait AsName {
    // Required method
    fn as_name(&self) -> Name;
}

Required Methods§

fn as_name(&self) -> Name

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsName for BuiltinType

Source§

fn as_name(&self) -> Name

§

impl AsName for FieldKind

§

fn as_name(&self) -> Name

§

impl AsName for Ident

§

fn as_name(&self) -> Name

§

impl AsName for Name

§

fn as_name(&self) -> Name

§

impl AsName for NameOrNameRef

§

fn as_name(&self) -> Name

§

impl AsName for NameRef

§

fn as_name(&self) -> Name

Implementors§