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