pub struct BorrowedCursor<'a> { /* private fields */ }
Implementations§
Source§impl<'a> BorrowedCursor<'a>
impl<'a> BorrowedCursor<'a>
pub fn reborrow<'this>(&'this mut self) -> BorrowedCursor<'this>
pub fn capacity(&self) -> usize
pub fn written(&self) -> usize
pub fn init_ref(&self) -> &[u8]
pub fn init_mut(&mut self) -> &mut [u8]
pub fn uninit_mut(&mut self) -> &mut [MaybeUninit<u8>]
Sourcepub unsafe fn as_mut(&mut self) -> &mut [MaybeUninit<u8>]
pub unsafe fn as_mut(&mut self) -> &mut [MaybeUninit<u8>]
§Safety
pub fn advance(&mut self, n: usize) -> &mut Self
Sourcepub unsafe fn advance_unchecked(&mut self, n: usize) -> &mut Self
pub unsafe fn advance_unchecked(&mut self, n: usize) -> &mut Self
§Safety
pub fn ensure_init(&mut self) -> &mut Self
pub fn append(&mut self, buf: &[u8])
Trait Implementations§
Source§impl<'a> Debug for BorrowedCursor<'a>
impl<'a> Debug for BorrowedCursor<'a>
Source§impl<'a> Write for BorrowedCursor<'a>
impl<'a> Write for BorrowedCursor<'a>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
fn is_write_vectored(&self) -> bool
Source§fn write_all(&mut self, buf: &[u8]) -> Result<()>
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Auto Trait Implementations§
impl<'a> Freeze for BorrowedCursor<'a>
impl<'a> RefUnwindSafe for BorrowedCursor<'a>
impl<'a> Send for BorrowedCursor<'a>
impl<'a> Sync for BorrowedCursor<'a>
impl<'a> Unpin for BorrowedCursor<'a>
impl<'a> !UnwindSafe for BorrowedCursor<'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