pub enum TrailStep {
Key(String),
Index(usize),
}Expand description
One step of a concrete location: a record key or an array index. A trail is a path with every wildcard bound to an
index, so a record key spelled 0 is never mistaken for the first element of an array.
Variants§
Trait Implementations§
impl Eq for TrailStep
impl StructuralPartialEq for TrailStep
Auto Trait Implementations§
impl Forget for TrailStep
impl Freeze for TrailStep
impl Move for TrailStep
impl RefUnwindSafe for TrailStep
impl Send for TrailStep
impl Sync for TrailStep
impl Unpin for TrailStep
impl UnsafeUnpin for TrailStep
impl UnwindSafe for TrailStep
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