GeoNum

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GeoNum for f32

Source§

type Ker = RobustKernel

Source§

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

Source§

impl GeoNum for f64

Source§

type Ker = RobustKernel

Source§

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

Source§

impl GeoNum for i16

Source§

type Ker = SimpleKernel

Source§

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

Source§

impl GeoNum for i32

Source§

type Ker = SimpleKernel

Source§

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

Source§

impl GeoNum for i64

Source§

type Ker = SimpleKernel

Source§

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

Source§

impl GeoNum for i128

Source§

type Ker = SimpleKernel

Source§

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

Source§

impl GeoNum for isize

Source§

type Ker = SimpleKernel

Source§

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

Implementors§