pub enum GetDisjointMutError {
IndexOutOfBounds,
OverlappingIndices,
}Expand description
The error type returned by get_disjoint_mut.
It indicates one of two possible errors:
- An index is out-of-bounds.
- The same index appeared multiple times in the array (or different but overlapping indices when ranges are provided).
ยงExamples
Variantsยง
IndexOutOfBounds
An index provided was out-of-bounds for the slice.
OverlappingIndices
Two indices provided were overlapping.
Trait Implementationsยง
1.86.0 ยท Sourceยงimpl Clone for GetDisjointMutError
impl Clone for GetDisjointMutError
Sourceยงfn clone(&self) -> GetDisjointMutError
fn clone(&self) -> GetDisjointMutError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
Performs copy-assignment from
source. Read more1.86.0 ยท Sourceยงimpl Debug for GetDisjointMutError
impl Debug for GetDisjointMutError
1.86.0 ยท Sourceยงimpl Display for GetDisjointMutError
impl Display for GetDisjointMutError
impl Eq for GetDisjointMutError
1.86.0 ยท 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()
1.86.0 ยท Sourceยงimpl PartialEq for GetDisjointMutError
impl PartialEq for GetDisjointMutError
Sourceยงfn eq(&self, other: &GetDisjointMutError) -> bool
fn eq(&self, other: &GetDisjointMutError) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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