pub trait MonotonicallyMappableToU64:
'static
+ PartialOrd
+ Debug
+ Copy
+ Send
+ Sync {
// Required methods
fn to_u64(self) -> u64;
fn from_u64(val: u64) -> Self;
}
Expand description
Monotonic maps a value to u64 value space.
Monotonic mapping enables PartialOrd
on u64 space without conversion to original space.
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.