pub struct GetManyMutError<const N: usize> { /* private fields */ }
🔬This is a nightly-only experimental API. (
get_many_mut
)Expand description
The error type returned by get_many_mut<N>
.
It indicates one of two possible errors:
- An index is out-of-bounds.
- The same index appeared multiple times in the array.
§Examples
#![feature(get_many_mut)]
let v = &mut [1, 2, 3];
assert!(v.get_many_mut([0, 999]).is_err());
assert!(v.get_many_mut([1, 1]).is_err());
Trait Implementations§
source§impl<const N: usize> Debug for GetManyMutError<N>
impl<const N: usize> Debug for GetManyMutError<N>
source§impl<const N: usize> Display for GetManyMutError<N>
impl<const N: usize> Display for GetManyMutError<N>
source§impl<const N: usize> Error for GetManyMutError<N>
impl<const N: usize> Error for GetManyMutError<N>
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()
Auto Trait Implementations§
impl<const N: usize> Freeze for GetManyMutError<N>
impl<const N: usize> RefUnwindSafe for GetManyMutError<N>
impl<const N: usize> Send for GetManyMutError<N>
impl<const N: usize> Sync for GetManyMutError<N>
impl<const N: usize> Unpin for GetManyMutError<N>
impl<const N: usize> UnwindSafe for GetManyMutError<N>
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> IntoAnyhow for T
impl<T> IntoAnyhow for T
source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
Converts
self
into an anyhow::Error
.