pub struct SliceWriter<'a> { /* private fields */ }
Expand description
Simple writer that writes into a mutable byte slice.
Implementations§
Source§impl<'a> SliceWriter<'a>
impl<'a> SliceWriter<'a>
Sourcepub fn from_slice(buf: &'a mut [u8]) -> Self
pub fn from_slice(buf: &'a mut [u8]) -> Self
Create a new writer over the given buffer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SliceWriter<'a>
impl<'a> RefUnwindSafe for SliceWriter<'a>
impl<'a> Send for SliceWriter<'a>
impl<'a> Sync for SliceWriter<'a>
impl<'a> Unpin for SliceWriter<'a>
impl<'a> !UnwindSafe for SliceWriter<'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