Trait IntoNamed

Source
pub trait IntoNamed: Sized {
    // Provided method
    fn named<S>(self, name: S) -> Named<Self>
       where S: AsRef<str> { ... }
}
Expand description

Turn a value into a named value

Provided Methods§

Source

fn named<S>(self, name: S) -> Named<Self>
where S: AsRef<str>,

Add a name to this object

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<T> IntoNamed for T