pub struct SliceSink<'a> { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Sink for SliceSink<'_>
impl Sink for SliceSink<'_>
Source§fn extend_from_slice(&mut self, data: &[u8])
fn extend_from_slice(&mut self, data: &[u8])
Extends the Sink with
data.Source§fn extend_from_slice_wild(&mut self, data: &[u8], copy_len: usize)
fn extend_from_slice_wild(&mut self, data: &[u8], copy_len: usize)
Extends the Sink with
data, but only advances pos by copy_len.
Allows overcopying into the trailing slack for wildcopy.Source§fn extend_from_within_overlapping(&mut self, start: usize, num_bytes: usize)
fn extend_from_within_overlapping(&mut self, start: usize, num_bytes: usize)
Copies
num_bytes from start within the output buffer, handling
overlapping (periodic) patterns byte by byte.Source§fn output_mut_with_pos(&mut self) -> (&mut [u8], &mut usize)
fn output_mut_with_pos(&mut self) -> (&mut [u8], &mut usize)
Returns the underlying buffer and a mutable reference to the position.
Auto Trait Implementations§
impl<'a> !UnwindSafe for SliceSink<'a>
impl<'a> Freeze for SliceSink<'a>
impl<'a> RefUnwindSafe for SliceSink<'a>
impl<'a> Send for SliceSink<'a>
impl<'a> Sync for SliceSink<'a>
impl<'a> Unpin for SliceSink<'a>
impl<'a> UnsafeUnpin for SliceSink<'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