[−][src]Trait spaces::BoundedSpace
Trait for defining spaces with at least one finite bound.
Note: If both inf
and sup
are well defined (i.e. are not None), then the interval is
totally bounded and we have a compact space; this is true in spaces
as bounds are treated as
closed.
Required methods
fn inf(&self) -> Option<Self::Value>
Returns the value of the dimension's infimum, if it exists.
fn sup(&self) -> Option<Self::Value>
Returns the value of the dimension's supremum, if it exists.
fn contains(&self, val: Self::Value) -> bool
Returns true iff val
lies within the dimension's bounds (closed).
Provided methods
fn is_left_bounded(&self) -> bool
Returns true iff self
has a finite infimum.
fn is_right_bounded(&self) -> bool
Returns true iff self
has a finite supremum.
fn is_compact(&self) -> bool
Returns true iff self
has finite bounds in both directions.
Note: this trait assumed closedness, so compactness follows.