pub trait Float: Default + Copy + Sealed {
type Bytes: AsRef<[u8]> + AsMut<[u8]> + Default;
fn from_le_bytes(bytes: Self::Bytes) -> Self;
}
Expand description
Sealead trait to generically represent f32 and f64.
pub trait Float: Default + Copy + Sealed {
type Bytes: AsRef<[u8]> + AsMut<[u8]> + Default;
fn from_le_bytes(bytes: Self::Bytes) -> Self;
}
Sealead trait to generically represent f32 and f64.