Struct uniffi::deps::static_assertions::_core::slice::GetManyMutError
source · pub struct GetManyMutError<const N: usize> {
_private: (),
}
🔬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());
Fields§
§_private: ()
🔬This is a nightly-only experimental API. (
get_many_mut
)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> 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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>