pub enum Segment {
Descendant(Box<Segment>),
Selector(Selector),
Selectors(Vec<Selector>),
}Expand description
Enum representing different types of segments in a JSONPath query.
Variants§
Descendant(Box<Segment>)
Represents a descendant segment.
Selector(Selector)
Represents a selector segment.
Selectors(Vec<Selector>)
Represents multiple selectors.
Implementations§
Trait Implementations§
Source§impl Query for Segment
impl Query for Segment
Source§fn process_with_context<'a, T: Queryable>(
&self,
step: State<'a, T>,
ctx: &mut JsonPathEvalContext,
) -> State<'a, T>
fn process_with_context<'a, T: Queryable>( &self, step: State<'a, T>, ctx: &mut JsonPathEvalContext, ) -> State<'a, T>
Processes the state, reusing what
ctx keeps.impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Forget for Segment
impl Freeze for Segment
impl Move for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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