Struct variable_len_reader::util::bufs::OwnedReadBuf8
source · pub struct OwnedReadBuf8 { /* private fields */ }
Implementations§
source§impl OwnedReadBuf8
impl OwnedReadBuf8
pub fn new() -> Self
pub fn into_inner(&self) -> [u8; 1]
pub fn advance(&mut self, cnt: usize)
pub fn buf(&self) -> &[u8] ⓘ
pub fn buf_mut(&mut self) -> &mut [u8] ⓘ
pub fn filled(&self) -> usize
pub fn left(&self) -> usize
pub fn clear(&mut self)
pub fn set_filled(&mut self, filled: usize)
pub fn set(&mut self, val: u8)
pub fn put(&mut self, val: u8)
pub fn set_slice(&mut self, slice: &[u8])
pub fn put_slice(&mut self, slice: &[u8])
Trait Implementations§
source§impl Debug for OwnedReadBuf8
impl Debug for OwnedReadBuf8
source§impl<'a> From<&'a mut OwnedReadBuf8> for ReadBuf<'a>
impl<'a> From<&'a mut OwnedReadBuf8> for ReadBuf<'a>
source§fn from(value: &'a mut OwnedReadBuf8) -> Self
fn from(value: &'a mut OwnedReadBuf8) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for OwnedReadBuf8
impl Send for OwnedReadBuf8
impl Sync for OwnedReadBuf8
impl Unpin for OwnedReadBuf8
impl UnwindSafe for OwnedReadBuf8
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