Trait Key

Source
pub trait Key<const TABLE_MIN_VALUE: i128>:
    PrimInt
    + Eq
    + Hash
    + TryFrom<i128>
    + Debug
    + 'static
    + Sealed<TABLE_MIN_VALUE> {
    // Required method
    fn key_index(&self) -> usize;
}
Expand description

Defines the primitives that can be used as a key (u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, and isize)

Required Methods§

Source

fn key_index(&self) -> usize

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<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for i8

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for i16

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for i32

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for i64

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for i128

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for isize

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for u8

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for u16

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for u32

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for u64

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for u128

Source§

impl<const TABLE_MIN_VALUE: i128> Key<TABLE_MIN_VALUE> for usize

Implementors§