Key

Trait Key 

Source
pub trait Key:
    Copy
    + Clone
    + PartialEq
    + Eq
    + Hash
    + Debug {
    // Required methods
    fn from_parts(index: u32, generation: Generation, map_id: u64) -> Self;
    fn index(&self) -> u32;
    fn generation(&self) -> Generation;
    fn map_id(&self) -> u64;
}

Required Methods§

Source

fn from_parts(index: u32, generation: Generation, map_id: u64) -> Self

Source

fn index(&self) -> u32

Source

fn generation(&self) -> Generation

Source

fn map_id(&self) -> u64

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§