HashMatchKey

Trait HashMatchKey 

Source
pub trait HashMatchKey:
    Packed
    + Hash
    + Eq
    + Copy { }
Expand description

Trait marking types which can be used as a matching key in the HashMap.

The larger the HashMatchKey is, the faster the implementation will be but the minimal matching length will proportionally increase. For example a u32 HashMatchKey allows to find common substring equal or longer than 4 bytes while a u64 HashMatchKey will be significantly faster but only allows to find common substring equal or longer than 8 bytes.

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 HashMatchKey for u8

Source§

impl HashMatchKey for u16

Source§

impl HashMatchKey for u32

Source§

impl HashMatchKey for u64

Source§

impl HashMatchKey for [u8; 2]

Source§

impl HashMatchKey for [u8; 3]

Source§

impl HashMatchKey for [u8; 4]

Source§

impl HashMatchKey for [u8; 5]

Source§

impl HashMatchKey for [u8; 6]

Source§

impl HashMatchKey for [u8; 7]

Source§

impl HashMatchKey for [u8; 8]

Source§

impl HashMatchKey for [u16; 2]

Source§

impl HashMatchKey for [u16; 3]

Source§

impl HashMatchKey for [u16; 4]

Source§

impl HashMatchKey for [u16; 5]

Source§

impl HashMatchKey for [u16; 6]

Source§

impl HashMatchKey for [u16; 7]

Source§

impl HashMatchKey for [u16; 8]

Source§

impl HashMatchKey for [u32; 2]

Source§

impl HashMatchKey for [u32; 3]

Source§

impl HashMatchKey for [u32; 4]

Source§

impl HashMatchKey for [u32; 5]

Source§

impl HashMatchKey for [u32; 6]

Source§

impl HashMatchKey for [u32; 7]

Source§

impl HashMatchKey for [u32; 8]

Source§

impl HashMatchKey for [u64; 2]

Source§

impl HashMatchKey for [u64; 3]

Source§

impl HashMatchKey for [u64; 4]

Source§

impl HashMatchKey for [u64; 5]

Source§

impl HashMatchKey for [u64; 6]

Source§

impl HashMatchKey for [u64; 7]

Source§

impl HashMatchKey for [u64; 8]

Implementors§