blob: 7d9a9e3a00955a199fdfcf110d7c3917bb44362c [file]
use core::{fmt::Debug, hash::Hash};
use crate::slab::id::EntryId;
pub trait Key: Debug + Copy + Clone + PartialEq + Eq + PartialOrd + Ord + Hash {
fn from_id(id: EntryId) -> Self;
fn into_id(self) -> EntryId;
}