Trait OrdField

Source
pub trait OrdField:
    Bisectable
    + Copy
    + Neg<Output = Self>
    + Add<Self, Output = Self>
    + Sub<Self, Output = Self>
    + Mul<Self, Output = Self>
    + Div<Self, Output = Self> {
    // Required methods
    fn is_zero(self) -> bool;
    fn twice(self) -> Self;
    fn div64(self) -> Self;
}
Expand description

Requirements on the type T to be able to use toms748 algorithm.

Required Methods§

Source

fn is_zero(self) -> bool

Return true if self is the number 0.

Source

fn twice(self) -> Self

Return twice the value of self.

Source

fn div64(self) -> Self

Return the value of self divided by 64.

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 OrdField for f32

Source§

fn is_zero(self) -> bool

Source§

fn twice(self) -> Self

Source§

fn div64(self) -> Self

Source§

impl OrdField for f64

Source§

fn is_zero(self) -> bool

Source§

fn twice(self) -> Self

Source§

fn div64(self) -> Self

Implementors§