pub trait FloatBytes: Float {
// Required method
fn to_le_bytes(self) -> Vec<u8> ⓘ;
}Expand description
Host-side little-endian byte serialization for float dtypes.
Bound RuntimeOps / host upload paths on FloatBytes; keep kernels on
Float only.
Required Methods§
Sourcefn to_le_bytes(self) -> Vec<u8> ⓘ
fn to_le_bytes(self) -> Vec<u8> ⓘ
Serialize this scalar to its little-endian byte representation.
The byte length equals Num::BITS / 8. Used to upload host-side
constant/parameter data into a device buffer of element type D.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".