pub trait ByteOrderIo: Unsigned {
// Required methods
fn write_bytes<W, B>(self, writer: W) -> Result<(), W::Error>
where W: Writer,
B: ByteOrder;
fn read_bytes<'de, R, B>(reader: R) -> Result<Self, R::Error>
where R: Reader<'de>,
B: ByteOrder;
}
Expand description
Helper trait for performing I/O over Unsigned types.
Required Methods§
Sourcefn write_bytes<W, B>(self, writer: W) -> Result<(), W::Error>
fn write_bytes<W, B>(self, writer: W) -> Result<(), W::Error>
Write the current byte array to the given writer in little-endian encoding.
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.