Skip to main content

Max

Trait Max 

Source
pub trait Max<Other = Self> {
    type Output;

    // Required method
    fn max(self, other: Other) -> Self::Output;
}
Expand description

Provides maximum value selector

Required Associated Types§

Required Methods§

Source

fn max(self, other: Other) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Max for f32

Source§

type Output = f32

Source§

fn max(self, other: f32) -> f32

Source§

impl Max for f64

Source§

type Output = f64

Source§

fn max(self, other: f64) -> f64

Implementors§