pub enum Accessor {
Field(String),
Index(usize),
}Expand description
A SafelyIndex / SafelyIndexMut accessor.
Variants§
Field(String)
Accessing a string field from a mapping.
Index(usize)
Accessing an element from a sequence or a mapping.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Accessor
impl RefUnwindSafe for Accessor
impl Send for Accessor
impl Sync for Accessor
impl Unpin for Accessor
impl UnsafeUnpin for Accessor
impl UnwindSafe for Accessor
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