pub enum GenericExpr {
Atomic(GenericAtomic),
ArithmeticExpr {
left: Box<GenericExpr>,
op: ArithmeticOp,
right: Box<GenericExpr>,
},
AnnotatedArithmeticExpr {
unary_op: ArithmeticUnaryOp,
expr: Box<GenericExpr>,
},
CompareExpr {
left: Box<GenericExpr>,
op: CompareOp,
right: Box<GenericExpr>,
},
Not(Box<GenericExpr>),
LogicExpr {
left: Box<GenericExpr>,
op: LogicOp,
right: Box<GenericExpr>,
},
CommaExpr {
left: Box<GenericExpr>,
op: ConnectOp,
right: Box<GenericExpr>,
},
NestedExpr(Box<GenericExpr>),
FnCallExpr {
name: VariableChain,
args: Box<GenericExpr>,
},
ListInExpr {
left: Box<GenericExpr>,
op: ListInOp,
right: Box<GenericExpr>,
},
}Variants§
Atomic(GenericAtomic)
ArithmeticExpr
AnnotatedArithmeticExpr
CompareExpr
Not(Box<GenericExpr>)
LogicExpr
CommaExpr
NestedExpr(Box<GenericExpr>)
FnCallExpr
ListInExpr
Implementations§
Source§impl GenericExpr
impl GenericExpr
pub fn parse_str<T>(input: &str) -> Result<GenericExpr, TemplateParseError>
pub fn parse( atomics: Vec<GenericAtomic>, ) -> Result<(Vec<GenericAtomic>, GenericExpr), TemplateParseError>
Trait Implementations§
Source§impl Clone for GenericExpr
impl Clone for GenericExpr
Source§fn clone(&self) -> GenericExpr
fn clone(&self) -> GenericExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericExpr
impl Debug for GenericExpr
Source§impl PartialEq for GenericExpr
impl PartialEq for GenericExpr
impl StructuralPartialEq for GenericExpr
Auto Trait Implementations§
impl Freeze for GenericExpr
impl RefUnwindSafe for GenericExpr
impl Send for GenericExpr
impl Sync for GenericExpr
impl Unpin for GenericExpr
impl UnwindSafe for GenericExpr
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