pub enum InsertErrorKind {
AlreadyAssigned {
key: ObjectKey,
},
AlreadyAssignedExtension {
identifier: Identifier,
},
ExpectedArray,
ArrayIndexInvalid {
index: usize,
expected_index: usize,
},
ExpectedMap,
ExpectedTuple,
TupleIndexInvalid {
index: u8,
expected_index: usize,
},
BindingTargetHasValue,
}Variants§
AlreadyAssigned
AlreadyAssignedExtension
Fields
§
identifier: IdentifierExpectedArray
ArrayIndexInvalid
ExpectedMap
ExpectedTuple
TupleIndexInvalid
BindingTargetHasValue
Trait Implementations§
Source§impl Clone for InsertErrorKind
impl Clone for InsertErrorKind
Source§fn clone(&self) -> InsertErrorKind
fn clone(&self) -> InsertErrorKind
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 InsertErrorKind
impl Debug for InsertErrorKind
Source§impl Display for InsertErrorKind
impl Display for InsertErrorKind
Source§impl Error for InsertErrorKind
impl Error for InsertErrorKind
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 PartialEq for InsertErrorKind
impl PartialEq for InsertErrorKind
impl StructuralPartialEq for InsertErrorKind
Auto Trait Implementations§
impl Freeze for InsertErrorKind
impl RefUnwindSafe for InsertErrorKind
impl Send for InsertErrorKind
impl Sync for InsertErrorKind
impl Unpin for InsertErrorKind
impl UnwindSafe for InsertErrorKind
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