Trait opendp::core::Domain[][src]

pub trait Domain: Clone + PartialEq + Debug {
    type Carrier;
    fn member(&self, val: &Self::Carrier) -> Fallible<bool>;
}
Expand description

A set which constrains the input or output of a Function.

Domains capture the notion of what values are allowed to be the input or output of a Function.

Associated Types

The underlying type that the Domain specializes.

Required methods

Predicate to test an element for membership in the domain.

Implementors