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