pub trait BitWriteExts: BitWrite {
Show 33 methods
// Provided methods
fn write_bool(&mut self, value: bool) -> Result<()> { ... }
fn write_u1(&mut self, value: u1) -> Result<()> { ... }
fn write_u2(&mut self, value: u2) -> Result<()> { ... }
fn write_u3(&mut self, value: u3) -> Result<()> { ... }
fn write_u4(&mut self, value: u4) -> Result<()> { ... }
fn write_u5(&mut self, value: u5) -> Result<()> { ... }
fn write_u6(&mut self, value: u6) -> Result<()> { ... }
fn write_u7(&mut self, value: u7) -> Result<()> { ... }
fn write_u8(&mut self, value: u8) -> Result<()> { ... }
fn write_u9<B: ByteOrder>(&mut self, value: u9) -> Result<()> { ... }
fn write_u10<B: ByteOrder>(&mut self, value: u10) -> Result<()> { ... }
fn write_u11<B: ByteOrder>(&mut self, value: u11) -> Result<()> { ... }
fn write_u12<B: ByteOrder>(&mut self, value: u12) -> Result<()> { ... }
fn write_u13<B: ByteOrder>(&mut self, value: u13) -> Result<()> { ... }
fn write_u14<B: ByteOrder>(&mut self, value: u14) -> Result<()> { ... }
fn write_u15<B: ByteOrder>(&mut self, value: u15) -> Result<()> { ... }
fn write_u16<B: ByteOrder>(&mut self, value: u16) -> Result<()> { ... }
fn write_u17<B: ByteOrder>(&mut self, value: u17) -> Result<()> { ... }
fn write_u18<B: ByteOrder>(&mut self, value: u18) -> Result<()> { ... }
fn write_u19<B: ByteOrder>(&mut self, value: u19) -> Result<()> { ... }
fn write_u20<B: ByteOrder>(&mut self, value: u20) -> Result<()> { ... }
fn write_u21<B: ByteOrder>(&mut self, value: u21) -> Result<()> { ... }
fn write_u22<B: ByteOrder>(&mut self, value: u22) -> Result<()> { ... }
fn write_u23<B: ByteOrder>(&mut self, value: u23) -> Result<()> { ... }
fn write_u24<B: ByteOrder>(&mut self, value: u24) -> Result<()> { ... }
fn write_u25<B: ByteOrder>(&mut self, value: u25) -> Result<()> { ... }
fn write_u26<B: ByteOrder>(&mut self, value: u26) -> Result<()> { ... }
fn write_u27<B: ByteOrder>(&mut self, value: u27) -> Result<()> { ... }
fn write_u28<B: ByteOrder>(&mut self, value: u28) -> Result<()> { ... }
fn write_u29<B: ByteOrder>(&mut self, value: u29) -> Result<()> { ... }
fn write_u30<B: ByteOrder>(&mut self, value: u30) -> Result<()> { ... }
fn write_u31<B: ByteOrder>(&mut self, value: u31) -> Result<()> { ... }
fn write_u32<B: ByteOrder>(&mut self, value: u32) -> Result<()> { ... }
}
Expand description
A trait which extends BitWrite to add explicit write methods for non-standard-width types.
Provided Methods§
fn write_bool(&mut self, value: bool) -> Result<()>
fn write_u1(&mut self, value: u1) -> Result<()>
fn write_u2(&mut self, value: u2) -> Result<()>
fn write_u3(&mut self, value: u3) -> Result<()>
fn write_u4(&mut self, value: u4) -> Result<()>
fn write_u5(&mut self, value: u5) -> Result<()>
fn write_u6(&mut self, value: u6) -> Result<()>
fn write_u7(&mut self, value: u7) -> Result<()>
fn write_u8(&mut self, value: u8) -> Result<()>
fn write_u9<B: ByteOrder>(&mut self, value: u9) -> Result<()>
fn write_u10<B: ByteOrder>(&mut self, value: u10) -> Result<()>
fn write_u11<B: ByteOrder>(&mut self, value: u11) -> Result<()>
fn write_u12<B: ByteOrder>(&mut self, value: u12) -> Result<()>
fn write_u13<B: ByteOrder>(&mut self, value: u13) -> Result<()>
fn write_u14<B: ByteOrder>(&mut self, value: u14) -> Result<()>
fn write_u15<B: ByteOrder>(&mut self, value: u15) -> Result<()>
fn write_u16<B: ByteOrder>(&mut self, value: u16) -> Result<()>
fn write_u17<B: ByteOrder>(&mut self, value: u17) -> Result<()>
fn write_u18<B: ByteOrder>(&mut self, value: u18) -> Result<()>
fn write_u19<B: ByteOrder>(&mut self, value: u19) -> Result<()>
fn write_u20<B: ByteOrder>(&mut self, value: u20) -> Result<()>
fn write_u21<B: ByteOrder>(&mut self, value: u21) -> Result<()>
fn write_u22<B: ByteOrder>(&mut self, value: u22) -> Result<()>
fn write_u23<B: ByteOrder>(&mut self, value: u23) -> Result<()>
fn write_u24<B: ByteOrder>(&mut self, value: u24) -> Result<()>
fn write_u25<B: ByteOrder>(&mut self, value: u25) -> Result<()>
fn write_u26<B: ByteOrder>(&mut self, value: u26) -> Result<()>
fn write_u27<B: ByteOrder>(&mut self, value: u27) -> Result<()>
fn write_u28<B: ByteOrder>(&mut self, value: u28) -> Result<()>
fn write_u29<B: ByteOrder>(&mut self, value: u29) -> Result<()>
fn write_u30<B: ByteOrder>(&mut self, value: u30) -> Result<()>
fn write_u31<B: ByteOrder>(&mut self, value: u31) -> Result<()>
fn write_u32<B: ByteOrder>(&mut self, value: u32) -> Result<()>
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.