#[non_exhaustive]pub enum AccessErrorKind {
UnexpectedType {
expected: Cow<'static, str>,
found: String,
},
IndexOutOfBounds {
index: usize,
len: usize,
},
InvalidValue {
expected: Cow<'static, str>,
found: String,
reason: String,
},
CountMismatch {
declared: usize,
actual: usize,
},
Message(String),
}Expand description
What exactly went wrong in an AccessError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedType
The node is of another kind (list instead of value, string instead of atom…).
IndexOutOfBounds
The list is shorter than requested.
InvalidValue
The value has the right kind but cannot be converted.
CountMismatch
A counted list {count,items...} whose count does not match its items.
Message(String)
A message from serde: missing items, unknown variants and the like.
Trait Implementations§
Source§impl Clone for AccessErrorKind
impl Clone for AccessErrorKind
Source§impl Debug for AccessErrorKind
impl Debug for AccessErrorKind
impl Eq for AccessErrorKind
Source§impl PartialEq for AccessErrorKind
impl PartialEq for AccessErrorKind
impl StructuralPartialEq for AccessErrorKind
Auto Trait Implementations§
impl Freeze for AccessErrorKind
impl RefUnwindSafe for AccessErrorKind
impl Send for AccessErrorKind
impl Sync for AccessErrorKind
impl Unpin for AccessErrorKind
impl UnsafeUnpin for AccessErrorKind
impl UnwindSafe for AccessErrorKind
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