macro_toolset

Macro calc_hash_str

Source
macro_rules! calc_hash_str {
    ($($tt:tt)*) => { ... };
}
Expand description

A helper macro to get string from hash result

This is equivalent to calc_hash!(...).as_str().

ยงExamples


// General usage. Multiple params supported.
calc_hash_str!(SHA256: "hello", "world")