pub struct ByteBuf<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ByteBuf<'a>
impl<'a> ByteBuf<'a>
pub fn wrap(buf: &'a [u8]) -> ByteBuf<'a>
pub fn get_bytes(&mut self, n: usize) -> &[u8] ⓘ
pub fn get_u8(&mut self) -> Option<u8>
pub fn get_u16(&mut self) -> Option<u16>
pub fn get_u32(&mut self) -> Option<u32>
pub fn get_u64(&mut self) -> Option<u64>
pub fn pos(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for ByteBuf<'a>
impl<'a> RefUnwindSafe for ByteBuf<'a>
impl<'a> Send for ByteBuf<'a>
impl<'a> Sync for ByteBuf<'a>
impl<'a> Unpin for ByteBuf<'a>
impl<'a> UnwindSafe for ByteBuf<'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