Struct wasmtime_environ::__core::slice::GetManyMutError
source · 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)>
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()