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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>