pub enum Expression {
InfixOp {
meta: Meta,
lhe: Box<Expression>,
infix_op: ExpressionInfixOpcode,
rhe: Box<Expression>,
},
PrefixOp {
meta: Meta,
prefix_op: ExpressionPrefixOpcode,
rhe: Box<Expression>,
},
InlineSwitchOp {
meta: Meta,
cond: Box<Expression>,
if_true: Box<Expression>,
if_false: Box<Expression>,
},
ParallelOp {
meta: Meta,
rhe: Box<Expression>,
},
Variable {
meta: Meta,
name: String,
access: Vec<Access>,
},
Number(Meta, BigInt),
Call {
meta: Meta,
id: String,
args: Vec<Expression>,
},
ArrayInLine {
meta: Meta,
values: Vec<Expression>,
},
}
Variants
InfixOp
PrefixOp
InlineSwitchOp
ParallelOp
Variable
Number(Meta, BigInt)
Call
ArrayInLine
Implementations
sourceimpl Expression
impl Expression
pub fn get_meta(&self) -> &Meta
pub fn get_mut_meta(&mut self) -> &mut Meta
pub fn is_array(&self) -> bool
pub fn is_infix(&self) -> bool
pub fn is_prefix(&self) -> bool
pub fn is_switch(&self) -> bool
pub fn is_variable(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_call(&self) -> bool
pub fn is_parallel(&self) -> bool
Trait Implementations
sourceimpl Clone for Expression
impl Clone for Expression
sourcefn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl Display for Expression
impl Display for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more