#[non_exhaustive]pub struct IndexOutOfRangeError {
pub index: u32,
}Expand description
Out-of-range index when constructing a child number.
Indices are always in the range [0, 2^31 - 1]. Normal child numbers have the same range, while hardened child numbers lie in the range [2^31, 2^32 - 1].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u32The index that was out of range for a child number.
Trait Implementations§
Source§impl Clone for IndexOutOfRangeError
impl Clone for IndexOutOfRangeError
Source§fn clone(&self) -> IndexOutOfRangeError
fn clone(&self) -> IndexOutOfRangeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexOutOfRangeError
impl Debug for IndexOutOfRangeError
Source§impl Display for IndexOutOfRangeError
impl Display for IndexOutOfRangeError
impl Eq for IndexOutOfRangeError
Source§impl Error for IndexOutOfRangeError
Available on crate feature std only.
impl Error for IndexOutOfRangeError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Infallible> for IndexOutOfRangeError
impl From<Infallible> for IndexOutOfRangeError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IndexOutOfRangeError
impl PartialEq for IndexOutOfRangeError
Source§fn eq(&self, other: &IndexOutOfRangeError) -> bool
fn eq(&self, other: &IndexOutOfRangeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexOutOfRangeError
Auto Trait Implementations§
impl Freeze for IndexOutOfRangeError
impl RefUnwindSafe for IndexOutOfRangeError
impl Send for IndexOutOfRangeError
impl Sync for IndexOutOfRangeError
impl Unpin for IndexOutOfRangeError
impl UnsafeUnpin for IndexOutOfRangeError
impl UnwindSafe for IndexOutOfRangeError
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