Struct bitcoin::util::uint::ParseLengthError
source · 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
sourceimpl Clone for ParseLengthError
impl Clone for ParseLengthError
sourcefn clone(&self) -> ParseLengthError
fn clone(&self) -> ParseLengthError
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 ParseLengthError
impl Debug for ParseLengthError
sourceimpl Display for ParseLengthError
impl Display for ParseLengthError
sourceimpl Error for ParseLengthError
Available on crate feature std
only.
impl Error for ParseLengthError
Available on crate feature
std
only.1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl Hash for ParseLengthError
impl Hash for ParseLengthError
sourceimpl Ord for ParseLengthError
impl Ord for ParseLengthError
sourcefn cmp(&self, other: &ParseLengthError) -> Ordering
fn cmp(&self, other: &ParseLengthError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ParseLengthError> for ParseLengthError
impl PartialEq<ParseLengthError> for ParseLengthError
sourcefn eq(&self, other: &ParseLengthError) -> bool
fn eq(&self, other: &ParseLengthError) -> bool
sourceimpl PartialOrd<ParseLengthError> for ParseLengthError
impl PartialOrd<ParseLengthError> for ParseLengthError
sourcefn partial_cmp(&self, other: &ParseLengthError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseLengthError) -> Option<Ordering>
1.0.0 · sourcefn 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
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