pub trait Key:
Copy
+ Clone
+ Ord
+ Default
+ Send
+ Sync
+ ToPrimitive
+ Bounded
+ Zero
+ Add<Output = Self>
+ Sub<Output = Self> {
type Unsigned: Copy + Ord + ToPrimitive + NumCast;
// Required methods
fn to_unsigned(self) -> Self::Unsigned;
fn to_f64_fast(self) -> f64;
fn to_i64_fast(self) -> i64;
}Required Associated Types§
Required Methods§
fn to_unsigned(self) -> Self::Unsigned
fn to_f64_fast(self) -> f64
fn to_i64_fast(self) -> i64
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.