Trait glm::BaseNum
[−]
[src]
pub trait BaseNum: Primitive + Zero + One + Div<Self, Output = Self> + Rem<Self, Output = Self> { fn min(self, other: Self) -> Self; fn max(self, other: Self) -> Self; }
Trait for primitive number type.
Required Methods
fn min(self, other: Self) -> Self
Returns the smaller one of two numbers.
Example
use glm::BaseNum; assert_eq!(BaseNum::min(1i32, 2i32), 1i32);
fn max(self, other: Self) -> Self
Returns the larger one of two numbers.
Example
use glm::BaseNum; assert_eq!(BaseNum::max(1i32, 2i32), 2i32);
Implementations on Foreign Types
impl BaseNum for i32
[src]
impl BaseNum for i32
impl BaseNum for u32
[src]
impl BaseNum for u32
impl BaseNum for f32
[src]
impl BaseNum for f32
impl BaseNum for f64
[src]
impl BaseNum for f64