pub enum Expression<'a> {
Binary {
lhs: Box<Expression<'a>>,
op: BinOp,
rhs: Box<Expression<'a>>,
},
FCall {
name: &'a str,
args: Vec<Expression<'a>>,
},
Member {
value: Value<'a>,
path: Vec<Value<'a>>,
},
Restriction {
lhs: Box<Expression<'a>>,
op: Comparator,
rhs: Box<Expression<'a>>,
},
Sequence(Vec<Expression<'a>>),
Unary {
op: UnOp,
rhs: Box<Expression<'a>>,
},
Value(Value<'a>),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'a> Debug for Expression<'a>
impl<'a> Debug for Expression<'a>
Auto Trait Implementations§
impl<'a> Freeze for Expression<'a>
impl<'a> RefUnwindSafe for Expression<'a>
impl<'a> Send for Expression<'a>
impl<'a> Sync for Expression<'a>
impl<'a> Unpin for Expression<'a>
impl<'a> UnwindSafe for Expression<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more