Trait bcmp::hashmatch::HashMatchKey
[−]
[src]
pub trait HashMatchKey: Packed + Hash + Eq + Copy { }
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.
Implementors
impl HashMatchKey for u8
impl HashMatchKey for [u8; 2]
impl HashMatchKey for [u8; 3]
impl HashMatchKey for [u8; 4]
impl HashMatchKey for [u8; 5]
impl HashMatchKey for [u8; 6]
impl HashMatchKey for [u8; 7]
impl HashMatchKey for [u8; 8]
impl HashMatchKey for u16
impl HashMatchKey for [u16; 2]
impl HashMatchKey for [u16; 3]
impl HashMatchKey for [u16; 4]
impl HashMatchKey for [u16; 5]
impl HashMatchKey for [u16; 6]
impl HashMatchKey for [u16; 7]
impl HashMatchKey for [u16; 8]
impl HashMatchKey for u32
impl HashMatchKey for [u32; 2]
impl HashMatchKey for [u32; 3]
impl HashMatchKey for [u32; 4]
impl HashMatchKey for [u32; 5]
impl HashMatchKey for [u32; 6]
impl HashMatchKey for [u32; 7]
impl HashMatchKey for [u32; 8]
impl HashMatchKey for u64
impl HashMatchKey for [u64; 2]
impl HashMatchKey for [u64; 3]
impl HashMatchKey for [u64; 4]
impl HashMatchKey for [u64; 5]
impl HashMatchKey for [u64; 6]
impl HashMatchKey for [u64; 7]
impl HashMatchKey for [u64; 8]