Struct kvarn::prelude::networking::prelude::utils::prelude::compact_str::core::slice::GetManyMutError
source · pub struct GetManyMutError<const N: usize> { /* private fields */ }
🔬This is a nightly-only experimental API. (
get_many_mut
)Available on non-crate feature
miri-test-libstd
only.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()
Auto Trait Implementations§
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> AsCleanDebug for Twhere
T: Display,
impl<T> AsCleanDebug for Twhere T: Display,
source§fn as_clean(&self) -> CleanDebug<'_, Self>where
Self: Display,
fn as_clean(&self) -> CleanDebug<'_, Self>where Self: Display,
Get a
CleanDebug
for Self. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more