Trait geo::GeoNum

source ·
pub trait GeoNum: CoordNum {
    type Ker: Kernel<Self>;

    // Required method
    fn total_cmp(&self, other: &Self) -> Ordering;
}
Expand description

A trait for methods which work for both integers and floating point

Required Associated Types§

source

type Ker: Kernel<Self>

Required Methods§

source

fn total_cmp(&self, other: &Self) -> Ordering

Return the ordering between self and other.

For integers, this should behave just like Ord.

For floating point numbers, unlike the standard partial comparison between floating point numbers, this comparison always produces an ordering.

See f64::total_cmp for details.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GeoNum for f32

source§

impl GeoNum for f64

source§

impl GeoNum for i16

source§

impl GeoNum for i32

source§

impl GeoNum for i64

source§

impl GeoNum for isize

Implementors§