Enum ucglib::ast::Expression [−][src]
pub enum Expression { Simple(Value), Binary(BinaryOpDef), Compare(ComparisonDef), Copy(CopyDef), Grouped(Box<Expression>), Format(FormatDef), Call(CallDef), Macro(MacroDef), Select(SelectDef), ListOp(ListOpDef), }
Encodes a ucg expression. Expressions compute a value from.
Variants
Simple(Value)
Binary(BinaryOpDef)
Compare(ComparisonDef)
Copy(CopyDef)
Grouped(Box<Expression>)
Format(FormatDef)
Call(CallDef)
Macro(MacroDef)
Select(SelectDef)
ListOp(ListOpDef)
Methods
impl Expression
[src]
impl Expression
Trait Implementations
impl Debug for Expression
[src]
impl Debug for Expression
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Expression
[src]
impl PartialEq for Expression
fn eq(&self, other: &Expression) -> bool
[src]
fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
This method tests for !=
.
impl Clone for Expression
[src]
impl Clone for Expression
fn clone(&self) -> Expression
[src]
fn clone(&self) -> Expression
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Expression
[src]
impl Display for Expression
Auto Trait Implementations
impl Send for Expression
impl Send for Expression
impl Sync for Expression
impl Sync for Expression