Macros to calculate constant hash bytes result.
Macros from this crate does apply a specific hash function on input.
Input can be literal byte array as b"content"
or array of bytes
as [1, 2, 3]
.
Rust identifier can also be use, in this case we use their utf8 string
byte representation, for instance if the ident is MyStruct
, then
b"MyStruct"
will be hashed.
If multiple arguments comma separated are passed, they are concatenated
then hashed.
Examples:
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;