Enum collective::rangeset::RangeSetError
source · pub enum RangeSetError {
InvalidRange,
RangeOverlap,
}
Expand description
Error type for RangeSet
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 RangeSetError
impl Clone for RangeSetError
source§fn clone(&self) -> RangeSetError
fn clone(&self) -> RangeSetError
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 RangeSetError
impl Debug for RangeSetError
source§impl Display for RangeSetError
impl Display for RangeSetError
source§impl Error for RangeSetError
impl Error for RangeSetError
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 RangeSetError
impl PartialEq for RangeSetError
impl Eq for RangeSetError
impl StructuralPartialEq for RangeSetError
Auto Trait Implementations§
impl Freeze for RangeSetError
impl RefUnwindSafe for RangeSetError
impl Send for RangeSetError
impl Sync for RangeSetError
impl Unpin for RangeSetError
impl UnwindSafe for RangeSetError
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.