Struct variable_len_reader::util::bufs::OwnedReadBuf16
source · pub struct OwnedReadBuf16 { /* private fields */ }
Implementations§
source§impl OwnedReadBuf16
impl OwnedReadBuf16
pub fn new() -> Self
pub fn into_inner(&self) -> [u8; 2]
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 OwnedReadBuf16
impl Debug for OwnedReadBuf16
source§impl<'a> From<&'a mut OwnedReadBuf16> for ReadBuf<'a>
impl<'a> From<&'a mut OwnedReadBuf16> for ReadBuf<'a>
source§fn from(value: &'a mut OwnedReadBuf16) -> Self
fn from(value: &'a mut OwnedReadBuf16) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for OwnedReadBuf16
impl Send for OwnedReadBuf16
impl Sync for OwnedReadBuf16
impl Unpin for OwnedReadBuf16
impl UnwindSafe for OwnedReadBuf16
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