Enum move_lang::hlir::ast::UnannotatedExp_
source · pub enum UnannotatedExp_ {
Show 19 variants
Unit {
case: UnitCase,
},
Value(Value),
Move {
from_user: bool,
var: Var,
},
Copy {
from_user: bool,
var: Var,
},
Constant(ConstantName),
ModuleCall(Box<ModuleCall>),
Builtin(Box<BuiltinFunction>, Box<Exp>),
Freeze(Box<Exp>),
Dereference(Box<Exp>),
UnaryExp(UnaryOp, Box<Exp>),
BinopExp(Box<Exp>, BinOp, Box<Exp>),
Pack(StructName, Vec<BaseType>, Vec<(Field, BaseType, Exp)>),
ExpList(Vec<ExpListItem>),
Borrow(bool, Box<Exp>, Field),
BorrowLocal(bool, Var),
Cast(Box<Exp>, BuiltinTypeName),
Unreachable,
Spec(SpecId, BTreeMap<Var, SingleType>),
UnresolvedError,
}
Variants§
Unit
Value(Value)
Move
Copy
Constant(ConstantName)
ModuleCall(Box<ModuleCall>)
Builtin(Box<BuiltinFunction>, Box<Exp>)
Freeze(Box<Exp>)
Dereference(Box<Exp>)
UnaryExp(UnaryOp, Box<Exp>)
BinopExp(Box<Exp>, BinOp, Box<Exp>)
Pack(StructName, Vec<BaseType>, Vec<(Field, BaseType, Exp)>)
ExpList(Vec<ExpListItem>)
Borrow(bool, Box<Exp>, Field)
BorrowLocal(bool, Var)
Cast(Box<Exp>, BuiltinTypeName)
Unreachable
Spec(SpecId, BTreeMap<Var, SingleType>)
UnresolvedError
Implementations§
Trait Implementations§
source§impl Clone for UnannotatedExp_
impl Clone for UnannotatedExp_
source§fn clone(&self) -> UnannotatedExp_
fn clone(&self) -> UnannotatedExp_
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 moresource§impl Debug for UnannotatedExp_
impl Debug for UnannotatedExp_
source§impl PartialEq<UnannotatedExp_> for UnannotatedExp_
impl PartialEq<UnannotatedExp_> for UnannotatedExp_
source§fn eq(&self, other: &UnannotatedExp_) -> bool
fn eq(&self, other: &UnannotatedExp_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.