Trait FromF32

Source
pub trait FromF32: Sized {
    // Required method
    fn ff32(f: f32) -> Self;
}
Expand description

Convert an F32 ito any supported DType

Required Methods§

Source

fn ff32(f: f32) -> 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 FromF32 for f32

Source§

fn ff32(f: f32) -> Self

Source§

impl FromF32 for f64

Source§

fn ff32(f: f32) -> Self

Implementors§