pub enum Part<I> {
Index(I),
Range(Option<I>, Option<I>),
}Expand description
A 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
Implementations§
Trait Implementations§
source§impl<'de, I> Deserialize<'de> for Part<I>where
I: Deserialize<'de>,
impl<'de, I> Deserialize<'de> for Part<I>where
I: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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