Trait dfdx::numpy::WriteNumbers
source · [−]pub trait WriteNumbers {
fn write_numbers<W: Write>(
&self,
w: &mut W,
endian: Endian
) -> Result<usize>;
}
Expand description
Write all the numbers in &self with the bytes layed out in Endian order.
Most types that this should be implemented for have .to_be_bytes()
, .to_le_bytes()
,
and .to_ne_bytes()
.