pub trait IdAsHashKey: Hash + Eq {
    // Required methods
    fn get(&self) -> u64;
    fn new(id: u64) -> Self;
}
Expand description

Trait for handling serde for the ids as map keys.

Required Methods§

source

fn get(&self) -> u64

Gets the inner id.

source

fn new(id: u64) -> Self

Returns a new id from the given value.

Object Safety§

This trait is not object safe.

Implementors§