Trait nalgebra::PartialOrder [] [src]

pub trait PartialOrder {
    fn inf(&self, other: &Self) -> Self;
    fn sup(&self, other: &Self) -> Self;
    fn partial_cmp(&self, other: &Self) -> PartialOrdering;

    fn partial_le(&self, other: &Self) -> bool { ... }
    fn partial_lt(&self, other: &Self) -> bool { ... }
    fn partial_ge(&self, other: &Self) -> bool { ... }
    fn partial_gt(&self, other: &Self) -> bool { ... }
    fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self> { ... }
    fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self> { ... }
    fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self> { ... }
}

Pointwise ordering operations.

Required Methods

Returns the infimum of this value and another

Returns the supremum of this value and another

Compare self and other using a partial ordering relation.

Provided Methods

Returns true iff self and other are comparable and self <= other.

Returns true iff self and other are comparable and self < other.

Returns true iff self and other are comparable and self >= other.

Returns true iff self and other are comparable and self > other.

Return the minimum of self and other if they are comparable.

Return the maximum of self and other if they are comparable.

Clamp value between min and max. Returns None if value is not comparable to min or max.

Implementors