Trait OrderedSpace

Source
pub trait OrderedSpace: Space
where Self::Value: PartialOrd,
{ // Provided methods fn min(&self) -> Option<Self::Value> { ... } fn inf(&self) -> Option<Self::Value> { ... } fn max(&self) -> Option<Self::Value> { ... } fn sup(&self) -> Option<Self::Value> { ... } fn is_lower_bounded(&self) -> bool { ... } fn is_upper_bounded(&self) -> bool { ... } fn is_bounded(&self) -> bool { ... } }

Provided Methods§

Source

fn min(&self) -> Option<Self::Value>

Returns the value of the space’s minimum value, if it exists.

Source

fn inf(&self) -> Option<Self::Value>

Return the infimum of the space.

Source

fn max(&self) -> Option<Self::Value>

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

Source

fn sup(&self) -> Option<Self::Value>

Returns the supremum of the space.

Source

fn is_lower_bounded(&self) -> bool

Returns true iff self has a well-defined infimum.

Source

fn is_upper_bounded(&self) -> bool

Returns true iff self has a well-defined supremum.

Source

fn is_bounded(&self) -> bool

Returns true iff self has a well-defined minimum and maximum.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OrderedSpace for Range<usize>

Source§

fn min(&self) -> Option<usize>

Source§

fn max(&self) -> Option<usize>

Implementors§