impl_stable_hash

Macro impl_stable_hash 

Source
macro_rules! impl_stable_hash {
    ($T:ident$(<$lt:lifetime>)? {$($field:ident$(:$e:path)?),*}) => { ... };
    ($T:ident$(<$lt:lifetime>)? (transparent$(:$e:path)?)) => { ... };
}
Expand description

Implements StableHash. This macro supports two forms: Struct { field1, field2, … } and Tuple(transparent). Each field supports an optional modifier. For example: Tuple(transparent: AsBytes)

This API is unstable and will likely be modified for a 1.0 release. It’s just a stub to cover some common cases.