Skip to main content

FromF64

Trait FromF64 

Source
pub trait FromF64 {
    // Required method
    fn from_f64(f: f64) -> Self;
}
Expand description

A float out of a f64 (a f32 rounds).

Required Methods§

Source

fn from_f64(f: f64) -> Self

f as this type.

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

Source§

fn from_f64(f: f64) -> Self

Source§

impl FromF64 for f64

Source§

fn from_f64(f: f64) -> Self

Implementors§