pub enum IndexKeyError {
ZeroDimension {
position: usize,
},
LengthMismatch {
expected: usize,
actual: usize,
},
IndexOutOfRange {
position: usize,
value: usize,
dim: usize,
},
WidthOverflow {
requested_bits: u64,
},
}Expand description
Failures from index-key construction and encoding.
Variants§
ZeroDimension
A local dimension was zero, so the index space is empty.
LengthMismatch
A multi-index had the wrong number of components.
Fields
IndexOutOfRange
A component was not less than its local dimension.
Fields
WidthOverflow
The requested key width exceeds what this build can represent.
Trait Implementations§
Source§impl Clone for IndexKeyError
impl Clone for IndexKeyError
Source§fn clone(&self) -> IndexKeyError
fn clone(&self) -> IndexKeyError
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 moreimpl Copy for IndexKeyError
Source§impl Debug for IndexKeyError
impl Debug for IndexKeyError
Source§impl Display for IndexKeyError
impl Display for IndexKeyError
impl Eq for IndexKeyError
Source§impl Error for IndexKeyError
impl Error for IndexKeyError
1.30.0 · 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 PartialEq for IndexKeyError
impl PartialEq for IndexKeyError
Source§fn eq(&self, other: &IndexKeyError) -> bool
fn eq(&self, other: &IndexKeyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexKeyError
Auto Trait Implementations§
impl Freeze for IndexKeyError
impl RefUnwindSafe for IndexKeyError
impl Send for IndexKeyError
impl Sync for IndexKeyError
impl Unpin for IndexKeyError
impl UnsafeUnpin for IndexKeyError
impl UnwindSafe for IndexKeyError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreimpl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more