KeyedItem

Trait KeyedItem 

Source
pub trait KeyedItem: Item {
    type Key: for<'a> Dimension<'a, Self::Summary> + Ord;

    // Required method
    fn key(&self) -> Self::Key;
}
Expand description

An Item whose summary has a specific key that can be used to identify it

Required Associated Types§

Source

type Key: for<'a> Dimension<'a, Self::Summary> + Ord

Required Methods§

Source

fn key(&self) -> Self::Key

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§