pub enum Expr {
Path {
absolute: bool,
steps: Vec<Step>,
},
Literal(String),
Number(f64),
Binary {
op: BinaryOp,
lhs: Box<Expr>,
rhs: Box<Expr>,
},
Function {
name: String,
args: Vec<Expr>,
},
Negate(Box<Expr>),
}Available on crate feature
xpath only.Expand description
An XPath expression.
Variants§
Path
A location path. absolute means it started with /.
Fields
Literal(String)
A literal string.
Number(f64)
A literal number.
Binary
A binary operation.
Function
A function call.
Negate(Box<Expr>)
Unary negation.
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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