#[derive(ByteHash)]Available on crate feature
derive only.Expand description
Derives an optimized implementation of Hash for types that implement
IntoBytes and Immutable.
The standard library’s derive for Hash generates a recursive descent
into the fields of the type it is applied to. Instead, the implementation
derived by this macro makes a single call to Hasher::write() for both
Hash::hash() and Hash::hash_slice(), feeding the hasher the bytes
of the type or slice all at once.