Skip to main content

Order

Trait Order 

Source
pub trait Order {
    // Required methods
    fn max(&self, other: &Self) -> Self;
    fn min(&self, other: &Self) -> Self;
    fn clamp(&self, min: &Self, max: &Self) -> Self;
}

Required Methods§

Source

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

Source

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

Source

fn clamp(&self, min: &Self, max: &Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Order for T
where T: Ord + Clone,