Trait emath::NumExt[][src]

pub trait NumExt {
    fn at_least(self, lower_limit: Self) -> Self;
fn at_most(self, upper_limit: Self) -> Self; }

Extends f32, Vec2 etc with at_least and at_most as aliases for max and min.

Required methods

fn at_least(self, lower_limit: Self) -> Self[src]

More readable version of self.max(lower_limit)

fn at_most(self, upper_limit: Self) -> Self[src]

More readable version of self.min(upper_limit)

Loading content...

Implementations on Foreign Types

impl NumExt for f32[src]

fn at_least(self, lower_limit: Self) -> Self[src]

fn at_most(self, upper_limit: Self) -> Self[src]

impl NumExt for f64[src]

fn at_least(self, lower_limit: Self) -> Self[src]

fn at_most(self, upper_limit: Self) -> Self[src]

impl NumExt for usize[src]

fn at_least(self, lower_limit: Self) -> Self[src]

fn at_most(self, upper_limit: Self) -> Self[src]

Loading content...

Implementors

impl NumExt for Pos2[src]

fn at_least(self, lower_limit: Self) -> Self[src]

fn at_most(self, upper_limit: Self) -> Self[src]

impl NumExt for Vec2[src]

fn at_least(self, lower_limit: Self) -> Self[src]

fn at_most(self, upper_limit: Self) -> Self[src]

Loading content...