Trait FiniteFloat

Source
pub trait FiniteFloat:
    Copy
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self> {
    // Required methods
    fn from_usize(n: usize) -> Self;
    fn to_usize(self) -> usize;
    fn round_ieee754(self) -> usize;
    fn round(self) -> Self;
}

Required Methods§

Source

fn from_usize(n: usize) -> Self

Source

fn to_usize(self) -> usize

Source

fn round_ieee754(self) -> usize

Source

fn round(self) -> Self

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

Source§

fn from_usize(n: usize) -> Self

Source§

fn to_usize(self) -> usize

Source§

fn round_ieee754(self) -> usize

Source§

fn round(self) -> Self

Source§

impl FiniteFloat for f64

Source§

fn from_usize(n: usize) -> Self

Source§

fn to_usize(self) -> usize

Source§

fn round_ieee754(self) -> usize

Source§

fn round(self) -> Self

Implementors§