Struct data_encoding::DecodePartial
source · pub struct DecodePartial {
pub read: usize,
pub written: usize,
pub error: DecodeError,
}
Expand description
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
sourceimpl Clone for DecodePartial
impl Clone for DecodePartial
sourcefn clone(&self) -> DecodePartial
fn clone(&self) -> DecodePartial
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DecodePartial
impl Debug for DecodePartial
sourceimpl PartialEq<DecodePartial> for DecodePartial
impl PartialEq<DecodePartial> for DecodePartial
sourcefn eq(&self, other: &DecodePartial) -> bool
fn eq(&self, other: &DecodePartial) -> bool
impl Copy for DecodePartial
impl Eq for DecodePartial
impl StructuralEq for DecodePartial
impl StructuralPartialEq for DecodePartial
Auto Trait Implementations
impl RefUnwindSafe for DecodePartial
impl Send for DecodePartial
impl Sync for DecodePartial
impl Unpin for DecodePartial
impl UnwindSafe for DecodePartial
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more