#[non_exhaustive]#[repr(i32)]pub enum AccessKind {
Attr = 0,
ArrayItem = 1,
MapItem = 2,
AttrMissing = 3,
ArrayItemMissing = 4,
MapItemMissing = 5,
}Expand description
What an AccessStep accesses: an attribute, an array item or a map
item, or one of those that is missing.
The values are part of the ABI.
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.
Attr = 0
An object attribute; the key is its name.
ArrayItem = 1
An array item; the key is its index.
MapItem = 2
A map item; the key is the map key.
AttrMissing = 3
An attribute that does not exist, in an error report.
ArrayItemMissing = 4
An array index out of range, in an error report.
MapItemMissing = 5
A map key that is absent, in an error report.
Trait Implementations§
Source§impl Clone for AccessKind
impl Clone for AccessKind
Source§fn clone(&self) -> AccessKind
fn clone(&self) -> AccessKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccessKind
Source§impl Debug for AccessKind
impl Debug for AccessKind
impl Eq for AccessKind
Source§impl Hash for AccessKind
impl Hash for AccessKind
Source§impl PartialEq for AccessKind
impl PartialEq for AccessKind
impl StructuralPartialEq for AccessKind
Auto Trait Implementations§
impl Freeze for AccessKind
impl RefUnwindSafe for AccessKind
impl Send for AccessKind
impl Sync for AccessKind
impl Unpin for AccessKind
impl UnsafeUnpin for AccessKind
impl UnwindSafe for AccessKind
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