pub enum MapValueError {
EmptyKey {
index: usize,
},
NonScalarKey {
index: usize,
key: Value,
},
NonScalarValue {
index: usize,
value: Value,
},
DuplicateKey {
left_index: usize,
right_index: usize,
},
}Expand description
MapValueError
Invariant violations for Value::Map construction/normalization.
Variants§
Trait Implementations§
Source§impl Clone for MapValueError
impl Clone for MapValueError
Source§fn clone(&self) -> MapValueError
fn clone(&self) -> MapValueError
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 MapValueError
impl Debug for MapValueError
Source§impl Display for MapValueError
impl Display for MapValueError
Source§impl Error for MapValueError
impl Error for MapValueError
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 From<MapValueError> for SchemaInvariantError
impl From<MapValueError> for SchemaInvariantError
Source§fn from(value: MapValueError) -> Self
fn from(value: MapValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MapValueError
impl PartialEq for MapValueError
impl Eq for MapValueError
impl StructuralPartialEq for MapValueError
Auto Trait Implementations§
impl Freeze for MapValueError
impl RefUnwindSafe for MapValueError
impl Send for MapValueError
impl Sync for MapValueError
impl Unpin for MapValueError
impl UnsafeUnpin for MapValueError
impl UnwindSafe for MapValueError
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