pub trait NameLike {
const NAME_PREFIXES: [&'static str; 17] = _;
// Required method
fn to_name_str(&self) -> Result<&str, Utf8Error>;
// Provided methods
fn to_name_string(&self) -> Result<String, Utf8Error> { ... }
fn to_name_str_unchecked(&self) -> &str { ... }
fn to_name_string_unchecked(&self) -> String { ... }
}Provided Associated Constants§
const NAME_PREFIXES: [&'static str; 17] = _
Required Methods§
fn to_name_str(&self) -> Result<&str, Utf8Error>
Provided Methods§
fn to_name_string(&self) -> Result<String, Utf8Error>
fn to_name_str_unchecked(&self) -> &str
fn to_name_string_unchecked(&self) -> String
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.