Fromf64

Trait Fromf64 

Source
pub trait Fromf64 {
    // Required method
    fn fromf64(value: f64) -> Self;
}
Expand description

Trait to convert reduction’s scalar output to appropriate output type

This is an internal trait and ideally of no use to user usecases.

Required Methods§

Source

fn fromf64(value: f64) -> Self

Convert to target type from a double precision value

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 Fromf64 for bool

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for f32

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for f64

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for i16

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for i32

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for i64

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for u8

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for u16

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for u32

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for u64

Source§

fn fromf64(value: f64) -> Self

Source§

impl Fromf64 for usize

Source§

fn fromf64(value: f64) -> Self

Implementors§