Struct DecodePartial

pub struct DecodePartial { pub read: usize, pub written: usize, pub error: DecodeError }

Decoding error with partial result

Fields

read: usize

Number of bytes read from input

This number does not exceed the error position: read <= error.position.

written: usize

Number of bytes written to output

This number does not exceed the decoded length: written <= decode_len(read).

error: DecodeError

Decoding error

Trait Implementations

impl Clone for DecodePartial

fn clone(&self) -> DecodePartial

impl Copy for DecodePartial

impl Debug for DecodePartial

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for DecodePartial

impl PartialEq for DecodePartial

fn eq(&self, other: &DecodePartial) -> bool

impl StructuralPartialEq for DecodePartial

Auto Trait Implementations

impl Freeze for DecodePartial

impl RefUnwindSafe for DecodePartial

impl Send for DecodePartial

impl Sync for DecodePartial

impl Unpin for DecodePartial

impl UnsafeUnpin for DecodePartial

impl UnwindSafe for DecodePartial

Blanket Implementations

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for DecodePartial where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for DecodePartial where T: ?Sized,

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

impl<T> CloneToUninit for DecodePartial where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for DecodePartial

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for DecodePartial where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for DecodePartial 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 DecodePartial where U: Into<T>,

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

impl<T, U> TryInto<U> for DecodePartial where U: TryFrom<T>,

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