Skip to main content

CmpAssign

Trait CmpAssign 

Source
pub trait CmpAssign {
    // Required methods
    fn min_assign(&mut self, other: Self);
    fn max_assign(&mut self, other: Self);
}

Required Methods§

Source

fn min_assign(&mut self, other: Self)

Source

fn max_assign(&mut self, other: Self)

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.

Implementors§

Source§

impl<T> CmpAssign for T
where T: Ord,