Skip to main content

DecodeSample

Trait DecodeSample 

Source
pub trait DecodeSample: Copy + Sized {
    // Required methods
    fn from_f64(value: f64) -> Self;
    fn nan() -> Self;
}
Expand description

Numeric target type for decoded field values.

Required Methods§

Source

fn from_f64(value: f64) -> Self

Source

fn nan() -> 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 DecodeSample for f32

Source§

fn from_f64(value: f64) -> Self

Source§

fn nan() -> Self

Source§

impl DecodeSample for f64

Source§

fn from_f64(value: f64) -> Self

Source§

fn nan() -> Self

Implementors§