numcodecs_fourier_network

Trait FloatExt

Source
pub trait FloatExt:
    AddAssign
    + BurnElement
    + ConstOne
    + ConstZero
    + FloatTrait
    + FromPrimitive {
    type Precision: PrecisionSettings;

    // Required method
    fn from_usize(x: usize) -> Self;
}
Expand description

Floating point types.

Required Associated Types§

Source

type Precision: PrecisionSettings

The precision of this floating point type

Required Methods§

Source

fn from_usize(x: usize) -> Self

Convert a usize to a floating point number

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

Source§

type Precision = FullPrecisionSettings

Source§

fn from_usize(x: usize) -> Self

Source§

impl FloatExt for f64

Source§

type Precision = DoublePrecisionSettings

Source§

fn from_usize(x: usize) -> Self

Implementors§