Struct IntoVec

pub struct IntoVec<'d> { /* private fields */ }

A decoding sink into a vector.

See Decoder::into_vec on how to create this type.

Implementations

impl IntoVec<'_>

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.

fn decode_all(self, read: &[u8]) -> VectorResult

Decode data from a slice, requiring an end marker.

Auto Trait Implementations

impl<'d> !RefUnwindSafe for IntoVec<'d>

impl<'d> !Sync for IntoVec<'d>

impl<'d> !UnwindSafe for IntoVec<'d>

impl<'d> Freeze for IntoVec<'d>

impl<'d> Send for IntoVec<'d>

impl<'d> Unpin for IntoVec<'d>

impl<'d> UnsafeUnpin for IntoVec<'d>

Blanket Implementations

impl<T> Any for IntoVec<'d> where T: 'static + ?Sized,

impl<T> Borrow<T> for IntoVec<'d> where T: ?Sized,

impl<T> BorrowMut<T> for IntoVec<'d> where T: ?Sized,

impl<T> From<T> for IntoVec<'d>

impl<T, U> Into<U> for IntoVec<'d> where U: From<T>,

impl<T, U> TryFrom<U> for IntoVec<'d> where U: Into<T>,

impl<T, U> TryInto<U> for IntoVec<'d> where U: TryFrom<T>,