pub struct BorrowedBuf<'data> { /* private fields */ }
Implementations§
Source§impl<'data> BorrowedBuf<'data>
impl<'data> BorrowedBuf<'data>
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn init_len(&self) -> usize
pub fn filled(&self) -> &[u8]
pub fn filled_mut(&mut self) -> &mut [u8]
pub fn unfilled<'this>(&'this mut self) -> BorrowedCursor<'this>
pub fn clear(&mut self) -> &mut Self
Trait Implementations§
Source§impl Debug for BorrowedBuf<'_>
impl Debug for BorrowedBuf<'_>
Source§impl<'data> From<&'data mut [MaybeUninit<u8>]> for BorrowedBuf<'data>
impl<'data> From<&'data mut [MaybeUninit<u8>]> for BorrowedBuf<'data>
Source§fn from(buf: &'data mut [MaybeUninit<u8>]) -> BorrowedBuf<'data>
fn from(buf: &'data mut [MaybeUninit<u8>]) -> BorrowedBuf<'data>
Converts to this type from the input type.
Source§impl<'data> From<&'data mut [u8]> for BorrowedBuf<'data>
impl<'data> From<&'data mut [u8]> for BorrowedBuf<'data>
Source§fn from(slice: &'data mut [u8]) -> BorrowedBuf<'data>
fn from(slice: &'data mut [u8]) -> BorrowedBuf<'data>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'data> Freeze for BorrowedBuf<'data>
impl<'data> RefUnwindSafe for BorrowedBuf<'data>
impl<'data> Send for BorrowedBuf<'data>
impl<'data> Sync for BorrowedBuf<'data>
impl<'data> Unpin for BorrowedBuf<'data>
impl<'data> !UnwindSafe for BorrowedBuf<'data>
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