Key

Trait Key 

Source
pub trait Key: Sized {
    // Required methods
    fn from_id(id: SlotId) -> Self;
    fn as_id(self) -> SlotId;
}

Required Methods§

Source

fn from_id(id: SlotId) -> Self

Source

fn as_id(self) -> SlotId

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§