Skip to main content

HasMax

Trait HasMax 

Source
pub trait HasMax {
    type Of: Copy;

    const MAX: Self::Of;
}

Required Associated Constants§

Source

const MAX: Self::Of

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Bounded> HasMax for T

Source§

const MAX: Self::Of = <T as Bounded>::HI

Source§

type Of = <T as Bounded>::Of