pub struct Traversal {
pub expr: Expression,
pub operators: Vec<Decorated<TraversalOperator>>,
/* private fields */
}Expand description
Traverse an expression to access attributes, object keys or element indices.
Fields§
§expr: ExpressionThe expression that the access operator is applied to.
operators: Vec<Decorated<TraversalOperator>>The traversal operators to apply to expr one of the other.
Implementations§
source§impl Traversal
impl Traversal
sourcepub fn new(
expr: Expression,
operators: Vec<Decorated<TraversalOperator>>
) -> Traversal
pub fn new( expr: Expression, operators: Vec<Decorated<TraversalOperator>> ) -> Traversal
Creates a new Traversal structure from an expression and traversal operators that should
be applied to it.
Trait Implementations§
source§impl From<Traversal> for Expression
impl From<Traversal> for Expression
source§impl PartialEq<Traversal> for Traversal
impl PartialEq<Traversal> for Traversal
impl Eq for Traversal
impl StructuralEq for Traversal
Auto Trait Implementations§
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnwindSafe for Traversal
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