pub trait Named {
const ITEM: &'static Item;
// Provided methods
fn full_name(f: &mut Formatter<'_>) -> Result { ... }
fn display() -> impl Display { ... }
}
Expand description
The trait used for something that can be statically named.
Required Associated Constants§
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.
Implementations on Foreign Types§
Source§impl Named for ParseCharError
impl Named for ParseCharError
Source§impl Named for ParseFloatError
impl Named for ParseFloatError
Source§impl Named for ParseIntError
impl Named for ParseIntError
Implementors§
Source§impl Named for FromUtf8Error
Available on crate feature alloc
only.
impl Named for FromUtf8Error
Available on crate feature
alloc
only.