pub struct RawWriter<'a> { /* private fields */ }
Expand description
Helper to easily write binary values to a mut u8-slice, triggering EncodingError on out-of-bounds errors.
Implementations
Trait Implementations
sourceimpl<'a> RawOutput<EncodingError> for RawWriter<'a>
impl<'a> RawOutput<EncodingError> for RawWriter<'a>
fn write_u8(&mut self, n: u8) -> Result<(), EncodingError>
fn write_i64(&mut self, i: i64, size: usize) -> Result<(), EncodingError>
fn write_u64(&mut self, i: u64, size: usize) -> Result<(), EncodingError>
fn write_var_i64(&mut self, i: i64) -> Result<(), EncodingError>
fn write_var_u64(&mut self, i: u64) -> Result<(), EncodingError>
fn write_f32(&mut self, f: f32) -> Result<(), EncodingError>
fn write_f64(&mut self, f: f64) -> Result<(), EncodingError>
fn skip(&mut self, n: usize) -> Result<(), EncodingError>
fn write_bytes(&mut self, s: &[u8]) -> Result<(), EncodingError>
fn write_var_bytes(&mut self, s: &[u8]) -> Result<(), EncodingError>
fn swap_range(&mut self, a: usize, b: usize) -> Result<(), EncodingError>
fn pos(&self) -> usize
Auto Trait Implementations
impl<'a> RefUnwindSafe for RawWriter<'a>
impl<'a> Send for RawWriter<'a>
impl<'a> Sync for RawWriter<'a>
impl<'a> Unpin for RawWriter<'a>
impl<'a> !UnwindSafe for RawWriter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more