Skip to main content

Module structural_eq_hash

Module structural_eq_hash 

Source
Expand description

Structural equality and hashing of values.

Structs§

StructuralOptions
Options of structural equality and hashing.

Functions§

get_first_structural_mismatch
The first place where two values are not structurally equal, as the AccessPath of that place in each value.
get_first_structural_mismatch_with
As get_first_structural_mismatch, with StructuralOptions.
structural_equal
Whether two values are structurally equal: they have the same structure and content, compared recursively through containers and reflected fields, not by identity.
structural_equal_with
As structural_equal, with StructuralOptions.
structural_hash
The structural hash of a value, consistent with structural_equal: structurally equal values have the same hash.
structural_hash_with
As structural_hash, with StructuralOptions.