pub fn get_first_structural_mismatch<'l, 'r>(
lhs: impl Into<AnyView<'l>>,
rhs: impl Into<AnyView<'r>>,
) -> Result<Option<(AccessPath, AccessPath)>>Expand description
The first place where two values are not structurally equal, as the
AccessPath of that place in each value.
§Arguments
lhs- The left value.rhs- The right value.
§Returns
None if the values are structurally equal, else the paths of the first
mismatch in lhs and in rhs.
§Errors
Returns an error if an object in either value does not support structural equality.
See also structural_equal.