Struct bitcoin::util::uint::ParseLengthError
source · pub struct ParseLengthError {
pub actual: usize,
pub expected: usize,
}
Expand description
Invalid slice length.
Fields§
§actual: usize
The length of the slice de-facto
expected: usize
The required length of the slice
Trait Implementations§
source§impl Clone for ParseLengthError
impl Clone for ParseLengthError
source§fn clone(&self) -> ParseLengthError
fn clone(&self) -> ParseLengthError
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 ParseLengthError
impl Debug for ParseLengthError
source§impl Display for ParseLengthError
impl Display for ParseLengthError
source§impl Error for ParseLengthError
impl Error for ParseLengthError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for ParseLengthError
impl Hash for ParseLengthError
source§impl Ord for ParseLengthError
impl Ord for ParseLengthError
source§fn cmp(&self, other: &ParseLengthError) -> Ordering
fn cmp(&self, other: &ParseLengthError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ParseLengthError> for ParseLengthError
impl PartialEq<ParseLengthError> for ParseLengthError
source§fn eq(&self, other: &ParseLengthError) -> bool
fn eq(&self, other: &ParseLengthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ParseLengthError> for ParseLengthError
impl PartialOrd<ParseLengthError> for ParseLengthError
source§fn partial_cmp(&self, other: &ParseLengthError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseLengthError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ParseLengthError
impl Eq for ParseLengthError
impl StructuralEq for ParseLengthError
impl StructuralPartialEq for ParseLengthError
Auto Trait Implementations§
impl RefUnwindSafe for ParseLengthError
impl Send for ParseLengthError
impl Sync for ParseLengthError
impl Unpin for ParseLengthError
impl UnwindSafe for ParseLengthError
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