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