Macro fixed_hash::construct_hash
source · macro_rules! construct_hash {
($from: ident, $size: expr $(, $m:meta)*) => { ... };
}
Expand description
Construct a fixed-size hash type.
Takes the name of the type and the size in bytes and an optional third argument for meta data
Example: construct_hash!(H256, 32);
Example: construct_hash!(H160, 20, cfg_attr(feature = "serialize", derive(Serialize, Deserialize)));