[][src]Trait spaces::BoundedSpace

pub trait BoundedSpace: Space where
    Self::Value: PartialOrd
{ fn inf(&self) -> Option<Self::Value>;
fn sup(&self) -> Option<Self::Value>;
fn contains(&self, val: Self::Value) -> bool; fn is_left_bounded(&self) -> bool { ... }
fn is_right_bounded(&self) -> bool { ... }
fn is_compact(&self) -> bool { ... } }

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

Loading content...

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.

Loading content...

Implementors

impl BoundedSpace for Binary[src]

impl BoundedSpace for Integers[src]

impl BoundedSpace for Naturals[src]

impl BoundedSpace for NonNegativeIntegers[src]

impl BoundedSpace for NonZeroIntegers[src]

impl BoundedSpace for Ordinal[src]

impl BoundedSpace for NonNegativeReals[src]

impl BoundedSpace for PositiveReals[src]

impl BoundedSpace for Equipartition[src]

impl BoundedSpace for Interval<f64>[src]

impl BoundedSpace for Interval<i64>[src]

Loading content...