pub struct IntoVec<'d> {
encoder: &'d mut Encoder,
vector: &'d mut Vec<u8>,
}
Expand description
A encoding sink into a vector.
See Encoder::into_vec
on how to create this type.
Fields§
§encoder: &'d mut Encoder
§vector: &'d mut Vec<u8>
Implementations§
source§impl IntoVec<'_>
impl IntoVec<'_>
sourcepub fn encode(&mut self, read: &[u8]) -> VectorResult
pub fn encode(&mut self, read: &[u8]) -> VectorResult
Encode data from a slice.
sourcepub fn encode_all(self, read: &[u8]) -> VectorResult
pub fn encode_all(self, read: &[u8]) -> VectorResult
Decode data from a reader, adding an end marker.
fn grab_buffer(&mut self) -> (&mut [u8], &mut Encoder)
fn encode_part(&mut self, part: &[u8], finish: bool) -> VectorResult
Auto Trait Implementations§
impl<'d> Freeze for IntoVec<'d>
impl<'d> !RefUnwindSafe for IntoVec<'d>
impl<'d> Send for IntoVec<'d>
impl<'d> !Sync for IntoVec<'d>
impl<'d> Unpin for IntoVec<'d>
impl<'d> !UnwindSafe for IntoVec<'d>
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