Trait std::num::Orderable

pub trait Orderable: Ord {
    fn min(&self, other: &Self) -> Self;
    fn max(&self, other: &Self) -> Self;
    fn clamp(&self, mn: &Self, mx: &Self) -> Self;
}

Required Methods

fn min(&self, other: &Self) -> Self

fn max(&self, other: &Self) -> Self

fn clamp(&self, mn: &Self, mx: &Self) -> Self

Implementors