pub trait IdKind:
Copy
+ Ord
+ Hash {
const MNEMONIC: char;
const NOUN: &'static str;
// Required method
fn mark(ids: &mut Allocator) -> &mut u32;
}Expand description
The supertraits are the tag’s, not the id’s: Id<K> derives Copy,
Ord and Hash, and without them every generic bound would have to
restate what a compile-time tag trivially satisfies.
Required Associated Constants§
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.