pub trait TokenID: PartialEq + Clone {
// Required methods
fn zero() -> Self;
fn coerce(t: u64) -> Self;
fn restore(self) -> u64;
}Expand description
A trait to be able to convert token IDs on the fly
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.