Enum indices::TryIndicesError
source · pub enum TryIndicesError {
IndexOutOfBounds,
DuplicateIndex,
}
Expand description
The error type returned from the try_indices!
macro.
Variants§
IndexOutOfBounds
The requested index is larger than the length of the input slice.
DuplicateIndex
The index has been requested twice.
Trait Implementations§
source§impl Clone for TryIndicesError
impl Clone for TryIndicesError
source§fn clone(&self) -> TryIndicesError
fn clone(&self) -> TryIndicesError
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 TryIndicesError
impl Debug for TryIndicesError
source§impl Display for TryIndicesError
impl Display for TryIndicesError
source§impl Error for TryIndicesError
impl Error for TryIndicesError
1.30.0 · 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 TryIndicesError
impl Hash for TryIndicesError
source§impl Ord for TryIndicesError
impl Ord for TryIndicesError
source§fn cmp(&self, other: &TryIndicesError) -> Ordering
fn cmp(&self, other: &TryIndicesError) -> 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 for TryIndicesError
impl PartialEq for TryIndicesError
source§fn eq(&self, other: &TryIndicesError) -> bool
fn eq(&self, other: &TryIndicesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TryIndicesError
impl PartialOrd for TryIndicesError
source§fn partial_cmp(&self, other: &TryIndicesError) -> Option<Ordering>
fn partial_cmp(&self, other: &TryIndicesError) -> 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 TryIndicesError
impl Eq for TryIndicesError
impl StructuralPartialEq for TryIndicesError
Auto Trait Implementations§
impl Freeze for TryIndicesError
impl RefUnwindSafe for TryIndicesError
impl Send for TryIndicesError
impl Sync for TryIndicesError
impl Unpin for TryIndicesError
impl UnwindSafe for TryIndicesError
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