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