orc_format::read::decode

Trait Float

Source
pub trait Float:
    Default
    + Copy
    + Sealed {
    type Bytes: AsRef<[u8]> + AsMut<[u8]> + Default;

    // Required method
    fn from_le_bytes(bytes: Self::Bytes) -> Self;
}
Expand description

Sealead trait to generically represent f32 and f64.

Required Associated Types§

Required Methods§

Source

fn from_le_bytes(bytes: Self::Bytes) -> 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 Float for f32

Source§

type Bytes = [u8; 4]

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

impl Float for f64

Source§

type Bytes = [u8; 8]

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Implementors§