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