Enum collective::rangemap::RangeMapError
source · pub enum RangeMapError {
InvalidRange,
RangeOverlap,
}
Expand description
Error type for RangeMap
Variants§
InvalidRange
Used when an invalid range is provided (e.g. End is before start).
RangeOverlap
Used when an insertion would result in an overlap.
Trait Implementations§
source§impl Clone for RangeMapError
impl Clone for RangeMapError
source§fn clone(&self) -> RangeMapError
fn clone(&self) -> RangeMapError
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 RangeMapError
impl Debug for RangeMapError
source§impl Display for RangeMapError
impl Display for RangeMapError
source§impl Error for RangeMapError
impl Error for RangeMapError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for RangeMapError
impl PartialEq for RangeMapError
impl StructuralPartialEq for RangeMapError
Auto Trait Implementations§
impl Freeze for RangeMapError
impl RefUnwindSafe for RangeMapError
impl Send for RangeMapError
impl Sync for RangeMapError
impl Unpin for RangeMapError
impl UnwindSafe for RangeMapError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)