pub struct ReadBuf<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ReadBuf<'a>
impl<'a> ReadBuf<'a>
Sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Pointer to the start of the ReadBuf
Sourcepub fn filled(&self) -> &[u8] ⓘ
pub fn filled(&self) -> &[u8] ⓘ
Returns a shared reference to the filled portion of the buffer.
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Clears the buffer, resetting the filled region to empty.
The number of initialized bytes is not changed, and the contents of the buffer are not modified.
pub fn push_lit(&mut self, byte: u8)
pub fn push_dist(&mut self, dist: u16, len: u8)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ReadBuf<'a>
impl<'a> RefUnwindSafe for ReadBuf<'a>
impl<'a> !Send for ReadBuf<'a>
impl<'a> !Sync for ReadBuf<'a>
impl<'a> Unpin for ReadBuf<'a>
impl<'a> !UnwindSafe for ReadBuf<'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