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