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§
source§impl Clone for DecodePartial
impl Clone for DecodePartial
source§fn clone(&self) -> DecodePartial
fn clone(&self) -> DecodePartial
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecodePartial
impl Debug for DecodePartial
source§impl PartialEq for DecodePartial
impl PartialEq for DecodePartial
source§fn eq(&self, other: &DecodePartial) -> bool
fn eq(&self, other: &DecodePartial) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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