pub enum Component {
Key(String),
Index(i64),
Bare(String),
}Expand description
One step of a path.
Variants§
Key(String)
A mapping key, stated unambiguously by quoting.
Index(i64)
A sequence index, stated unambiguously by brackets. Negative values count back from the end.
Bare(String)
A bare component, resolved against whatever the parent turns out to be.
Trait Implementations§
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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