Trait spaces::BoundedSpace

source ·
pub trait BoundedSpace: Spacewhere
    Self::Value: PartialOrd,
{ type BoundValue: PartialOrd + Copy; fn inf(&self) -> Option<Self::BoundValue>; fn sup(&self) -> Option<Self::BoundValue>; fn contains(&self, val: Self::BoundValue) -> bool; }
Expand description

Trait for defining spaces bounded to lie on an interval I.

Note: If both inf and sup are well defined (i.e. are not None), then the interval is bounded and you have defined a compact space; this is true in spaces as the Interval type is closed.

Required Associated Types§

The upper/lower bound type; not necessarily equal to Space::Value.

Required Methods§

Returns the value of the dimension’s infimum, if it exists.

Returns the value of the dimension’s supremum, if it exists.

Returns true iff val lies within the dimension’s bounds (closed).

Implementors§