NamedItem

Trait NamedItem 

Source
pub trait NamedItem<'ni> {
    type Name: Hash + Ord + Copy + Display;
    type Unnamed: Unnamed<'ni, Named = Self>;

    // Required methods
    fn name(&self) -> Self::Name;
    fn dummy(name: Self::Name) -> Self;
}

Required Associated Types§

Source

type Name: Hash + Ord + Copy + Display

Source

type Unnamed: Unnamed<'ni, Named = Self>

Required Methods§

Source

fn name(&self) -> Self::Name

Source

fn dummy(name: Self::Name) -> Self

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§