Float

Trait Float 

Source
pub trait Float:
    NumFloat
    + AbstractField
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign {
    // Provided method
    fn cast(n: usize) -> Self { ... }
}
Expand description

Describes what floats are.

Provided Methods§

Source

fn cast(n: usize) -> Self

Casts usize to float.

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.

Implementors§