Skip to main content

Equality

Type Alias Equality 

Source
pub type Equality<T> = Arc<dyn Fn(&T, &T) -> bool + Send + Sync + RefUnwindSafe>;
Expand description

The custom equality predicate, called with the value under test first and the current default second. It replaces PartialEq, in pruning as everywhere else.

RefUnwindSafe is required so that holding a predicate does not cost a SparseVector its own UnwindSafe.

Aliased Typeยง

pub struct Equality<T> { /* private fields */ }