Key

Trait Key 

Source
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§

Source

fn to_unsigned(self) -> Self::Unsigned

Source

fn to_f64_fast(self) -> f64

Source

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.

Implementations on Foreign Types§

Source§

impl Key for i8

Source§

impl Key for i16

Source§

impl Key for i32

Source§

impl Key for i64

Source§

impl Key for i128

Source§

impl Key for isize

Source§

impl Key for u8

Source§

impl Key for u16

Source§

impl Key for u32

Source§

impl Key for u64

Source§

impl Key for u128

Source§

impl Key for usize

Implementors§