pub struct IntoVec<'d> {
decoder: &'d mut Decoder,
vector: &'d mut Vec<u8>,
}
Expand description
A decoding sink into a vector.
See Decoder::into_vec
on how to create this type.
Fields§
§decoder: &'d mut Decoder
§vector: &'d mut Vec<u8>
Implementations§
source§impl IntoVec<'_>
impl IntoVec<'_>
sourcepub fn decode(&mut self, read: &[u8]) -> VectorResult
pub fn decode(&mut self, read: &[u8]) -> VectorResult
Decode data from a slice.
This will read data until the slice is empty or an end marker is reached.
sourcepub fn decode_all(self, read: &[u8]) -> VectorResult
pub fn decode_all(self, read: &[u8]) -> VectorResult
Decode data from a slice, requiring an end marker.
fn grab_buffer(&mut self) -> (&mut [u8], &mut Decoder)
fn decode_part(&mut self, part: &[u8], must_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