pub struct BytesMut<'a> { /* private fields */ }
Implementations§
source§impl<'a> BytesMut<'a>
impl<'a> BytesMut<'a>
pub fn new(data: &'a mut [u8]) -> BytesMut<'a>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn remaining(&self) -> usize
pub fn put_slice(&mut self, src: &[u8])
pub fn put_u8(&mut self, val: u8)
pub fn put_i8(&mut self, val: i8)
pub fn put_u16_le(&mut self, val: u16)
pub fn put_i16_le(&mut self, val: i16)
pub fn put_u24_le(&mut self, val: u32)
pub fn put_i24_le(&mut self, val: i32)
pub fn put_u32_le(&mut self, val: u32)
pub fn put_i32_le(&mut self, val: i32)
pub fn put_u64_le(&mut self, val: u64)
pub fn put_i64_le(&mut self, val: i64)
pub fn put_f32_le(&mut self, val: f32)
pub fn put_f64_le(&mut self, val: f64)
Auto Trait Implementations§
impl<'a> Freeze for BytesMut<'a>
impl<'a> RefUnwindSafe for BytesMut<'a>
impl<'a> Send for BytesMut<'a>
impl<'a> Sync for BytesMut<'a>
impl<'a> Unpin for BytesMut<'a>
impl<'a> !UnwindSafe for BytesMut<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more