Trait HasMax

Source
pub trait HasMax: Sized {
    const MAX: Self;

    // Required method
    const fn is_max(self) -> bool;
}
Expand description

✅ Checks if self is the maximum value.

§Panics

This function never panics.

Required Associated Constants§

Source

const MAX: Self

Required Methods§

Source

const fn is_max(self) -> bool

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 HasMax for Dec19x19

The biggest possible value that can be stored in a Dec19x19, equal to

17_014_118_346_046_923_173.168_730_371_588_410_572_7
Source§

const MAX: Self