pub struct BufferWriter<'a> { /* private fields */ }
Expand description
Writer backend for a byte slice
Implementations§
Source§impl<'a> BufferWriter<'a>
impl<'a> BufferWriter<'a>
Trait Implementations§
Source§impl<'a> StreamingWriter for BufferWriter<'a>
impl<'a> StreamingWriter for BufferWriter<'a>
Source§type Error = BufferWriterError
type Error = BufferWriterError
The kind of errors that the implementation emits during encoding
Source§fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Self::Error>
fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Self::Error>
Write all of the bytes from the provided buffer into the underlying
encoding stream. Read more
Expose an aliased view of a subset of the underlying data as
mutable bytes. Read more
Auto Trait Implementations§
impl<'a> Freeze for BufferWriter<'a>
impl<'a> RefUnwindSafe for BufferWriter<'a>
impl<'a> Send for BufferWriter<'a>
impl<'a> Sync for BufferWriter<'a>
impl<'a> Unpin for BufferWriter<'a>
impl<'a> !UnwindSafe for BufferWriter<'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