Enum move_compiler::hlir::ast::UnannotatedExp_   
source · [−]pub enum UnannotatedExp_ {
Show 20 variants
    Unit {
        case: UnitCase,
    },
    Value(Value),
    Move {
        annotation: MoveOpAnnotation,
        var: Var,
    },
    Copy {
        from_user: bool,
        var: Var,
    },
    Constant(ConstantName),
    ModuleCall(Box<ModuleCall>),
    Builtin(Box<BuiltinFunction>, Box<Exp>),
    Freeze(Box<Exp>),
    Vector(Loc, usize, Box<BaseType>, 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
Fields
case: UnitCaseValue(Value)
Move
Copy
Constant(ConstantName)
ModuleCall(Box<ModuleCall>)
Builtin(Box<BuiltinFunction>, Box<Exp>)
Freeze(Box<Exp>)
Vector(Loc, usize, Box<BaseType>, 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
sourceimpl Clone for UnannotatedExp_
 
impl Clone for UnannotatedExp_
sourcefn clone(&self) -> UnannotatedExp_
 
fn clone(&self) -> UnannotatedExp_
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 UnannotatedExp_
 
impl Debug for UnannotatedExp_
sourceimpl PartialEq<UnannotatedExp_> for UnannotatedExp_
 
impl PartialEq<UnannotatedExp_> for UnannotatedExp_
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &UnannotatedExp_) -> bool
 
fn ne(&self, other: &UnannotatedExp_) -> bool
This method tests for !=.
impl StructuralPartialEq for UnannotatedExp_
Auto Trait Implementations
impl RefUnwindSafe for UnannotatedExp_
impl Send for UnannotatedExp_
impl Sync for UnannotatedExp_
impl Unpin for UnannotatedExp_
impl UnwindSafe for UnannotatedExp_
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more