Struct variable_len_reader::util::bufs::OwnedWriteBuf16
source · pub struct OwnedWriteBuf16 { /* private fields */ }
Implementations§
source§impl OwnedWriteBuf16
impl OwnedWriteBuf16
pub fn new(buf: [u8; 2]) -> Self
pub fn into_inner(&self) -> [u8; 2]
pub fn buf_mut(&mut self) -> &mut [u8] ⓘ
pub fn set_buf(&mut self, buf: [u8; 2])
pub fn skip(&mut self, cnt: usize)
pub fn buf(&self) -> &[u8] ⓘ
pub fn read(&self) -> usize
pub fn left(&self) -> usize
pub fn reset(&mut self)
pub fn set_read(&mut self, read: usize)
pub fn get(&self) -> u8
pub fn take(&mut self) -> u8
pub fn get_slice(&self, len: usize) -> &[u8] ⓘ
pub fn take_slice(&mut self, len: usize) -> &[u8] ⓘ
Trait Implementations§
source§impl Debug for OwnedWriteBuf16
impl Debug for OwnedWriteBuf16
source§impl<'a> From<&'a OwnedWriteBuf16> for WriteBuf<'a>
impl<'a> From<&'a OwnedWriteBuf16> for WriteBuf<'a>
source§fn from(value: &'a OwnedWriteBuf16) -> Self
fn from(value: &'a OwnedWriteBuf16) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for OwnedWriteBuf16
impl Send for OwnedWriteBuf16
impl Sync for OwnedWriteBuf16
impl Unpin for OwnedWriteBuf16
impl UnwindSafe for OwnedWriteBuf16
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