pub struct WriteBuf<'a> { /* private fields */ }Implementations§
Source§impl<'a> WriteBuf<'a>
impl<'a> WriteBuf<'a>
pub fn new(data: &'a mut [u8]) -> Self
pub fn put_bytes_at<const COUNT: usize>( &mut self, index: usize, bytes: &[u8; COUNT], ) -> usize
pub fn put_u8_at(&mut self, index: usize, value: u8)
pub fn put_i8_at(&mut self, index: usize, value: i8)
pub fn put_i16_at(&mut self, index: usize, value: i16)
pub fn put_i32_at(&mut self, index: usize, value: i32)
pub fn put_i64_at(&mut self, index: usize, value: i64)
pub fn put_u16_at(&mut self, index: usize, value: u16)
pub fn put_u32_at(&mut self, index: usize, value: u32)
pub fn put_u64_at(&mut self, index: usize, value: u64)
pub fn put_f32_at(&mut self, index: usize, value: f32)
pub fn put_f64_at(&mut self, index: usize, value: f64)
pub fn put_slice_at(&mut self, index: usize, src: &[u8]) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WriteBuf<'a>
impl<'a> RefUnwindSafe for WriteBuf<'a>
impl<'a> Send for WriteBuf<'a>
impl<'a> Sync for WriteBuf<'a>
impl<'a> Unpin for WriteBuf<'a>
impl<'a> !UnwindSafe for WriteBuf<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more