Skip to main content

ToName

Trait ToName 

pub trait ToName: AsRef<str> {
    // Required method
    fn to_name(&self) -> Name;
}
Expand description

A record’s string field as a Name: shared when it is one already, allocated when borrowed.

Required Methods§

fn to_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§

§

impl ToName for &str

§

fn to_name(&self) -> Name

Implementors§

§

impl ToName for Name