Trait dfdx::numpy::ReadNumbers
source · [−]pub trait ReadNumbers {
fn read_numbers<R: Read>(&mut self, r: &mut R, endian: Endian) -> Result<()>;
}
Expand description
Reads all the numbers from r
into &mut self
assuming the bytes are layed out in Endian order.
Most types that this should be implemented for have Self::from_be_bytes()
, Self::from_le_bytes()
,
and Self::from_ne_bytes()
.