Struct enumeration::OutOfRangeError
source · [−]pub struct OutOfRangeError<T: Enumeration>(pub T::Index);Expand description
Error type when casting from Enumeration::Index to Enumeration.
Generated by using Enumeration::variant().
Tuple Fields
0: T::IndexTrait Implementations
sourceimpl<T: Clone + Enumeration> Clone for OutOfRangeError<T> where
T::Index: Clone,
impl<T: Clone + Enumeration> Clone for OutOfRangeError<T> where
T::Index: Clone,
sourcefn clone(&self) -> OutOfRangeError<T>
fn clone(&self) -> OutOfRangeError<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug + Enumeration> Debug for OutOfRangeError<T> where
T::Index: Debug,
impl<T: Debug + Enumeration> Debug for OutOfRangeError<T> where
T::Index: Debug,
sourceimpl<T: Default + Enumeration> Default for OutOfRangeError<T> where
T::Index: Default,
impl<T: Default + Enumeration> Default for OutOfRangeError<T> where
T::Index: Default,
sourcefn default() -> OutOfRangeError<T>
fn default() -> OutOfRangeError<T>
Returns the “default value” for a type. Read more
sourceimpl<T: Enumeration> Display for OutOfRangeError<T>
impl<T: Enumeration> Display for OutOfRangeError<T>
sourceimpl<T: Enumeration + Debug> Error for OutOfRangeError<T>
impl<T: Enumeration + Debug> Error for OutOfRangeError<T>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<T: Hash + Enumeration> Hash for OutOfRangeError<T> where
T::Index: Hash,
impl<T: Hash + Enumeration> Hash for OutOfRangeError<T> where
T::Index: Hash,
sourceimpl<T: Ord + Enumeration> Ord for OutOfRangeError<T> where
T::Index: Ord,
impl<T: Ord + Enumeration> Ord for OutOfRangeError<T> where
T::Index: Ord,
sourceimpl<T: PartialEq + Enumeration> PartialEq<OutOfRangeError<T>> for OutOfRangeError<T> where
T::Index: PartialEq,
impl<T: PartialEq + Enumeration> PartialEq<OutOfRangeError<T>> for OutOfRangeError<T> where
T::Index: PartialEq,
sourcefn eq(&self, other: &OutOfRangeError<T>) -> bool
fn eq(&self, other: &OutOfRangeError<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OutOfRangeError<T>) -> bool
fn ne(&self, other: &OutOfRangeError<T>) -> bool
This method tests for !=.
sourceimpl<T: PartialOrd + Enumeration> PartialOrd<OutOfRangeError<T>> for OutOfRangeError<T> where
T::Index: PartialOrd,
impl<T: PartialOrd + Enumeration> PartialOrd<OutOfRangeError<T>> for OutOfRangeError<T> where
T::Index: PartialOrd,
sourcefn partial_cmp(&self, other: &OutOfRangeError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &OutOfRangeError<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl<T: Copy + Enumeration> Copy for OutOfRangeError<T> where
T::Index: Copy,
impl<T: Eq + Enumeration> Eq for OutOfRangeError<T> where
T::Index: Eq,
impl<T: Enumeration> StructuralEq for OutOfRangeError<T>
impl<T: Enumeration> StructuralPartialEq for OutOfRangeError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for OutOfRangeError<T> where
<T as Enumeration>::Index: RefUnwindSafe,
impl<T> Send for OutOfRangeError<T> where
<T as Enumeration>::Index: Send,
impl<T> Sync for OutOfRangeError<T> where
<T as Enumeration>::Index: Sync,
impl<T> Unpin for OutOfRangeError<T> where
<T as Enumeration>::Index: Unpin,
impl<T> UnwindSafe for OutOfRangeError<T> where
<T as Enumeration>::Index: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more