pub trait TransparentKey: Hash + Eq {
    fn to_u64(&self) -> u64;
}
Expand description

Implement this trait for the key, if you want to use TransparentKeyBuilder as the KeyBuilder for the Cache.

u8, u16, u32, u64, i8, i16, i32, i64, bool implement TransparentKey by default.

Required methods

convert self to u64

Implementations on Foreign Types

Implementors