pub trait Domain: Clone {
type Elem: Clone + Debug;
fn equals(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> bool;
fn contains(&self, _elem: &Self::Elem) -> bool { ... }
}
Expand description
An arbitrary set of elements where not all representable objects are
members of the set. The same element can be represented by different
objects, thus the equals
method shall be used in place of ==
.