pub struct ByteBufMut<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ByteBufMut<'a>
impl<'a> ByteBufMut<'a>
pub fn wrap(buf: &'a mut [u8]) -> ByteBufMut<'a>
pub fn put_bytes(&mut self, bytes: &[u8]) -> usize
pub fn put_u8(&mut self, x: u8) -> usize
pub fn put_u16(&mut self, x: u16) -> usize
pub fn put_u32(&mut self, x: u32) -> usize
pub fn put_u64(&mut self, x: u64) -> usize
pub fn pos(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for ByteBufMut<'a>
impl<'a> RefUnwindSafe for ByteBufMut<'a>
impl<'a> Send for ByteBufMut<'a>
impl<'a> Sync for ByteBufMut<'a>
impl<'a> Unpin for ByteBufMut<'a>
impl<'a> !UnwindSafe for ByteBufMut<'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