pub enum Expr<'input> {
Term(Term<'input>),
Prefix(PrefixOperator, Box<Expr<'input>>),
Infix(Box<Expr<'input>>, InfixOperator, Box<Expr<'input>>),
Func(Function, Box<Expr<'input>>),
Group(Box<Expr<'input>>),
}Expand description
An expression or subexpression
Variants§
Term(Term<'input>)
Prefix(PrefixOperator, Box<Expr<'input>>)
Infix(Box<Expr<'input>>, InfixOperator, Box<Expr<'input>>)
Func(Function, Box<Expr<'input>>)
Group(Box<Expr<'input>>)
Trait Implementations§
impl<'input> Eq for Expr<'input>
impl<'input> StructuralPartialEq for Expr<'input>
Auto Trait Implementations§
impl<'input> Freeze for Expr<'input>
impl<'input> RefUnwindSafe for Expr<'input>
impl<'input> Send for Expr<'input>
impl<'input> Sync for Expr<'input>
impl<'input> Unpin for Expr<'input>
impl<'input> UnwindSafe for Expr<'input>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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