Skip to main content

structural_hash

Function structural_hash 

Source
pub fn structural_hash<'a>(value: impl Into<AnyView<'a>>) -> Result<u64>
Expand description

The structural hash of a value, consistent with structural_equal: structurally equal values have the same hash.

§Arguments

  • value - The value to hash.

§Returns

The hash.

§Errors

Returns an error if an object in the value does not support structural hashing.

See also structural_equal.