Trait geo_nd::Num

source ·
pub trait Num: Neg<Output = Self> + Num + NumAssignOps + Clone + Copy + PartialEq + Display + Debug { }
Expand description

The Num trait is required for matrix or vector elements; it is not a float, and so some of the matrix and vector operations can operate on integer types such as i32, i64 and isize

The trait requires basic numeric operations, plus specifically std::fmt::Display.

Implementations on Foreign Types§

source§

impl Num for i64

source§

impl Num for f32

source§

impl Num for isize

source§

impl Num for f64

source§

impl Num for i32

Implementors§