Struct variable_len_reader::util::bufs::WriteBuf
source · pub struct WriteBuf<'a> { /* private fields */ }
Implementations§
source§impl<'a> WriteBuf<'a>
impl<'a> WriteBuf<'a>
pub fn new(buf: &'a [u8]) -> Self
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<'a> From<&'a OwnedWriteBuf128> for WriteBuf<'a>
impl<'a> From<&'a OwnedWriteBuf128> for WriteBuf<'a>
source§fn from(value: &'a OwnedWriteBuf128) -> Self
fn from(value: &'a OwnedWriteBuf128) -> Self
Converts to this type from the input type.
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.
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.
source§impl<'a> From<&'a OwnedWriteBuf64> for WriteBuf<'a>
impl<'a> From<&'a OwnedWriteBuf64> for WriteBuf<'a>
source§fn from(value: &'a OwnedWriteBuf64) -> Self
fn from(value: &'a OwnedWriteBuf64) -> Self
Converts to this type from the input type.
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<'a> RefUnwindSafe for WriteBuf<'a>
impl<'a> Send for WriteBuf<'a>
impl<'a> Sync for WriteBuf<'a>
impl<'a> Unpin for WriteBuf<'a>
impl<'a> UnwindSafe for WriteBuf<'a>
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