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 ==.

Required Associated Types

The type of the elements of this domain.

Required Methods

Checks if the given objects represent the same element of the set.

Provided Methods

Checks if the given object is a member of the domain.

Implementors