pub trait LittleEndianWriteExt: Write {
// Provided methods
fn write_u16_le(&mut self, input: u16) -> Result<()> { ... }
fn write_u32_le(&mut self, input: u32) -> Result<()> { ... }
fn write_u64_le(&mut self, input: u64) -> Result<()> { ... }
fn write_u128_le(&mut self, input: u128) -> Result<()> { ... }
}Expand description
Helper methods for writing unsigned integers in little-endian form.
Provided Methods§
fn write_u16_le(&mut self, input: u16) -> Result<()>
fn write_u32_le(&mut self, input: u32) -> Result<()>
fn write_u64_le(&mut self, input: u64) -> Result<()>
fn write_u128_le(&mut self, input: u128) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".