[][src]Trait static_aabb2d_index::IndexableNum

pub trait IndexableNum: Copy + Num + PartialOrd + Default + Bounded + NumCast {
    pub fn min(self, other: Self) -> Self { ... }
pub fn max(self, other: Self) -> Self { ... } }

Trait used by the StaticAABB2DIndex that is required to be implemented for type T. It is blanket implemented for all primitive numeric types.

Provided methods

pub fn min(self, other: Self) -> Self[src]

Simple default min implementation for PartialOrd types.

pub fn max(self, other: Self) -> Self[src]

Simple default max implementation for PartialOrd types.

Loading content...

Implementors

impl<T> IndexableNum for T where
    T: Copy + Num + PartialOrd + Default + Bounded + NumCast
[src]

Loading content...