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§
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.