pub enum PathStep {
Field(u32),
Index(u32),
Variant(u32),
MapKey,
MapValue,
OptionSome,
Deref,
}Expand description
A single step in a path through a type structure.
Each step records an index that can be used to navigate
back through a Shape to reconstruct field names and types.
Variants§
Field(u32)
Navigate to a struct field by index
Index(u32)
Navigate to a list/array element by index
Variant(u32)
Navigate to an enum variant by index
MapKey
Navigate into a map key
MapValue
Navigate into a map value
OptionSome
Navigate into Some of an Option
Deref
Navigate through a pointer/reference
Trait Implementations§
impl Copy for PathStep
impl Eq for PathStep
impl StructuralPartialEq for PathStep
Auto Trait Implementations§
impl Freeze for PathStep
impl RefUnwindSafe for PathStep
impl Send for PathStep
impl Sync for PathStep
impl Unpin for PathStep
impl UnwindSafe for PathStep
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