Skip to main content

Float

Trait Float 

Source
pub trait Float:
    Float
    + Copy
    + Default
    + ToPrimitive
    + PartialEq
    + 'static { }
Expand description

Trait for types valid as float elements in columnar arrays.

Useful when specifying my_fn::<T: Float>() {}.

Extends and constrains the num-traits Float implementation to fit the crate’s type universe.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Float for f32

Source§

impl Float for f64

Implementors§