pub enum InsertWithKeyError {
KeyNotReserved,
InvalidKey,
}Expand description
Variants§
KeyNotReserved
Cannot insert with this key because it is not reserved.
InvalidKey
Cannot insert with this key because the slot index or generation is invalid for this arena.
Trait Implementations§
Source§impl Clone for InsertWithKeyError
impl Clone for InsertWithKeyError
Source§fn clone(&self) -> InsertWithKeyError
fn clone(&self) -> InsertWithKeyError
Returns a duplicate 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 InsertWithKeyError
impl Debug for InsertWithKeyError
Source§impl Display for InsertWithKeyError
impl Display for InsertWithKeyError
Source§impl Error for InsertWithKeyError
impl Error for InsertWithKeyError
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 Hash for InsertWithKeyError
impl Hash for InsertWithKeyError
Source§impl PartialEq for InsertWithKeyError
impl PartialEq for InsertWithKeyError
impl Copy for InsertWithKeyError
impl Eq for InsertWithKeyError
impl StructuralPartialEq for InsertWithKeyError
Auto Trait Implementations§
impl Freeze for InsertWithKeyError
impl RefUnwindSafe for InsertWithKeyError
impl Send for InsertWithKeyError
impl Sync for InsertWithKeyError
impl Unpin for InsertWithKeyError
impl UnwindSafe for InsertWithKeyError
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