pub struct CursorWriter<'a> { /* private fields */ }
Expand description
This is a Writer
that can be used to serialize a value into a pre-allocated byte buffer.
Implementations§
Source§impl<'a> CursorWriter<'a>
impl<'a> CursorWriter<'a>
pub fn new(buffer: &'a mut [u8]) -> CursorWriter<'a>
Trait Implementations§
Source§impl<'a> Writer for CursorWriter<'a>
impl<'a> Writer for CursorWriter<'a>
Auto Trait Implementations§
impl<'a> Freeze for CursorWriter<'a>
impl<'a> RefUnwindSafe for CursorWriter<'a>
impl<'a> Send for CursorWriter<'a>
impl<'a> Sync for CursorWriter<'a>
impl<'a> Unpin for CursorWriter<'a>
impl<'a> !UnwindSafe for CursorWriter<'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