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: usizeNumber of bytes read from input
This number does not exceed the error position: read <= error.position.
written: usizeNumber of bytes written to output
This number does not exceed the decoded length: written <= decode_len(read).
error: DecodeErrorDecoding 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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DecodePartial) -> bool
fn ne(&self, other: &DecodePartial) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more