NameLike

Trait NameLike 

Source
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§

Source

const NAME_PREFIXES: [&'static str; 17] = _

Required Methods§

Provided Methods§

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.

Implementors§

Source§

impl<A> NameLike for A
where A: StringLike,