pub enum ArithExpr {
Integer(i64),
Float(f64),
Variable(String),
Unary(ArithUnaryOp, Box<ArithExpr>),
Binary(ArithBinaryOp, Box<ArithExpr>, Box<ArithExpr>),
}Expand description
An arithmetic expression inside $(( ... )).
Variants§
Integer(i64)
Integer literal.
Float(f64)
Floating-point literal.
Variable(String)
A bare variable name; its value is coerced to a number.
Unary(ArithUnaryOp, Box<ArithExpr>)
Prefix - or !.
Binary(ArithBinaryOp, Box<ArithExpr>, Box<ArithExpr>)
An infix operator.
Trait Implementations§
impl Eq for ArithExpr
impl StructuralPartialEq for ArithExpr
Auto Trait Implementations§
impl Freeze for ArithExpr
impl RefUnwindSafe for ArithExpr
impl Send for ArithExpr
impl Sync for ArithExpr
impl Unpin for ArithExpr
impl UnsafeUnpin for ArithExpr
impl UnwindSafe for ArithExpr
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.