Skip to main content

Expression

Type Alias Expression 

Source
pub type Expression = ExprTree<ExpressionKind>;
Expand description

An expression that can be evaluated, with source location

Expressions use semantic equality: two expressions with the same structure are equal regardless of source location.

Aliased Type§

pub struct Expression {
    pub table: ExprTable<ExpressionKind>,
    pub root: ExprId,
}

Fields§

§table: ExprTable<ExpressionKind>§root: ExprId

Trait Implementations§

Source§

impl Display for Expression

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more