[−][src]Enum counting_sort::CountingSortError
This enumeration is a list of all possible errors that can happen during
cnt_sort
or
cnt_sort_min_max
.
Variants
IntoIndexFailed(&'static str)
The conversion from a value of the to-be-sorted type T
into an
index (usize
) failed.
Most likely due to an overflow happening.
IteratorEmpty(&'static str)
The iterator is empty and therefore nothing can be sorted.
SortingUnnecessary(&'static str)
The minimum value is equal to the maximum value, this means sorting is unnecessary.
MinValueLargerMaxValue(&'static str)
The minimum value is larger than the maximum value, most likely due to calling
cnt_sort_min_max
with the switched
parameters.
IndexOutOfBounds(&'static str)
The converted index is still larger than the length of the count value vector. This happens
when the given maximum value is smaller than the actual maximum value when
cnt_sort_min_max
is used.
Trait Implementations
impl Debug for CountingSortError
[src]
impl Display for CountingSortError
[src]
impl Error for CountingSortError
[src]
Auto Trait Implementations
impl RefUnwindSafe for CountingSortError
impl Send for CountingSortError
impl Sync for CountingSortError
impl Unpin for CountingSortError
impl UnwindSafe for CountingSortError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,