Module output_eq

Module output_eq 

Source
Expand description

Utility functions for output equality comparison in queries.

These functions are designed to be used with the #[query(output_eq = ...)] attribute when the output type is Result<T, E> and E does not implement PartialEq.

Functionsยง

ignore_err
Compare Ok values for equality, treat all Err as equal.
ok_or_invalidate
Compare only the Ok values. Returns false for any Err case, causing downstream queries to be invalidated (recomputed).