[][src]Trait cjdns_snode::pathsearch::numtraits::IntoOrd

pub trait IntoOrd where
    Self::Output: Ord
{ type Output; fn into_ord(self) -> Self::Output; }

Helper trait, providing total ordering for non-Ord types, such as f64, given its value is finite (i.e. not NaN, Infinity etc.)

Associated Types

type Output

Some substitute Ord type which can be used instead of Self for ordering purposes. Only should be used for comparisons, its value itself is meaningless.

Loading content...

Required methods

fn into_ord(self) -> Self::Output

Convert self into Ord-supporting type Self::Output.

Loading content...

Implementations on Foreign Types

impl IntoOrd for f64[src]

type Output = i64

Loading content...

Implementors

Loading content...