pub enum GetManyMutError {
IndexOutOfBounds,
OverlappingIndices,
}
🔬This is a nightly-only experimental API. (
get_many_mut
#104642)Expand description
The error type returned by get_many_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
🔬This is a nightly-only experimental API. (
get_many_mut
#104642)An index provided was out-of-bounds for the slice.
OverlappingIndices
🔬This is a nightly-only experimental API. (
get_many_mut
#104642)Two indices provided were overlapping.
Trait Implementations§
Source§impl Clone for GetManyMutError
impl Clone for GetManyMutError
Source§fn clone(&self) -> GetManyMutError
fn clone(&self) -> GetManyMutError
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 GetManyMutError
impl Debug for GetManyMutError
Source§impl Display for GetManyMutError
impl Display for GetManyMutError
Source§impl Error for GetManyMutError
impl Error for GetManyMutError
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 GetManyMutError
impl PartialEq for GetManyMutError
impl Eq for GetManyMutError
impl StructuralPartialEq for GetManyMutError
Auto Trait Implementations§
impl Freeze for GetManyMutError
impl RefUnwindSafe for GetManyMutError
impl Send for GetManyMutError
impl Sync for GetManyMutError
impl Unpin for GetManyMutError
impl UnwindSafe for GetManyMutError
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