pub enum GetDisjointMutError {
IndexVacant,
IndexOutOfBounds,
OverlappingIndices,
}
Expand description
The error type returned by Slab::get_disjoint_mut
.
Variants§
IndexVacant
An index provided was not associated with a value.
IndexOutOfBounds
An index provided was out-of-bounds for the slab.
OverlappingIndices
Two indices provided were overlapping.
Trait Implementations§
Source§impl Clone for GetDisjointMutError
impl Clone for GetDisjointMutError
Source§fn clone(&self) -> GetDisjointMutError
fn clone(&self) -> GetDisjointMutError
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 GetDisjointMutError
impl Debug for GetDisjointMutError
Source§impl Display for GetDisjointMutError
impl Display for GetDisjointMutError
Source§impl Error for GetDisjointMutError
impl Error for GetDisjointMutError
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 GetDisjointMutError
impl PartialEq for GetDisjointMutError
impl Eq for GetDisjointMutError
impl StructuralPartialEq for GetDisjointMutError
Auto Trait Implementations§
impl Freeze for GetDisjointMutError
impl RefUnwindSafe for GetDisjointMutError
impl Send for GetDisjointMutError
impl Sync for GetDisjointMutError
impl Unpin for GetDisjointMutError
impl UnwindSafe for GetDisjointMutError
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