pub enum RangeOperationError {
WouldOverflow,
IsDecreasingOrEmpty,
}
Expand description
Enum describing how a range may be invalid.
Variants§
Trait Implementations§
source§impl Clone for RangeOperationError
impl Clone for RangeOperationError
source§fn clone(&self) -> RangeOperationError
fn clone(&self) -> RangeOperationError
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 RangeOperationError
impl Debug for RangeOperationError
source§impl Display for RangeOperationError
impl Display for RangeOperationError
source§impl Error for RangeOperationError
impl Error for RangeOperationError
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 RangeOperationError
impl Hash for RangeOperationError
source§impl PartialEq<RangeOperationError> for RangeOperationError
impl PartialEq<RangeOperationError> for RangeOperationError
source§fn eq(&self, other: &RangeOperationError) -> bool
fn eq(&self, other: &RangeOperationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RangeOperationError
impl Eq for RangeOperationError
impl StructuralEq for RangeOperationError
impl StructuralPartialEq for RangeOperationError
Auto Trait Implementations§
impl RefUnwindSafe for RangeOperationError
impl Send for RangeOperationError
impl Sync for RangeOperationError
impl Unpin for RangeOperationError
impl UnwindSafe for RangeOperationError
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