pub enum Part<I> {
Index(I),
Range(Option<I>, Option<I>),
}Expand description
Part of a path, such as [], a, and [1:] in .[].a?[1:].
Variants§
Index(I)
Access arrays with integer and objects with string indices
Range(Option<I>, Option<I>)
Iterate over arrays with optional range bounds and over objects without bounds
If both are None, return iterator over whole array/object
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Part<I>where
I: Freeze,
impl<I> RefUnwindSafe for Part<I>where
I: RefUnwindSafe,
impl<I> Send for Part<I>where
I: Send,
impl<I> Sync for Part<I>where
I: Sync,
impl<I> Unpin for Part<I>where
I: Unpin,
impl<I> UnwindSafe for Part<I>where
I: UnwindSafe,
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