Enum cairo_lang_lowering::lower::context::LoweredExpr
source · pub enum LoweredExpr {
AtVariable(VariableId),
Tuple {
exprs: Vec<LoweredExpr>,
location: StableLocation,
},
ExternEnum(LoweredExprExternEnum),
SemanticVar(VarId),
Snapshot {
expr: Box<LoweredExpr>,
location: StableLocation,
},
}
Expand description
Representation of the value of a computed expression.
Variants§
AtVariable(VariableId)
The expression value lies in a variable.
Tuple
The expression value is a tuple.
ExternEnum(LoweredExprExternEnum)
The expression value is an enum result from an extern call.
SemanticVar(VarId)
Snapshot
Implementations§
source§impl LoweredExpr
impl LoweredExpr
pub fn var( self, ctx: &mut LoweringContext<'_>, scope: &mut BlockBuilder ) -> Result<VariableId, LoweringFlowError>
pub fn ty(&self, ctx: &mut LoweringContext<'_>) -> TypeId
Trait Implementations§
source§impl Clone for LoweredExpr
impl Clone for LoweredExpr
source§fn clone(&self) -> LoweredExpr
fn clone(&self) -> LoweredExpr
Returns a copy 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 more