Trait comfy_wgpu::epaint::emath::NumExt
pub trait NumExt {
// Required methods
fn at_least(self, lower_limit: Self) -> Self;
fn at_most(self, upper_limit: Self) -> Self;
}Expand description
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
fn at_least(self, lower_limit: Self) -> Self
More readable version of self.max(lower_limit)
fn at_most(self, upper_limit: Self) -> Self
fn at_most(self, upper_limit: Self) -> Self
More readable version of self.min(upper_limit)