pub trait DomainView {
type Value: Copy + Eq + Ord + Debug;
// Required methods
fn is_empty(&self) -> bool;
fn is_fixed(&self) -> bool;
fn size(&self) -> usize;
fn min(&self) -> Option<Self::Value>;
fn max(&self) -> Option<Self::Value>;
fn contains(&self, value: Self::Value) -> bool;
}Expand description
Read-only interface for inspecting a variable domain.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".