Enum move_compiler::typing::ast::UnannotatedExp_   
source · [−]pub enum UnannotatedExp_ {
Show 31 variants
    Unit {
        trailing: bool,
    },
    Value(Value),
    Move {
        from_user: bool,
        var: Var,
    },
    Copy {
        from_user: bool,
        var: Var,
    },
    Use(Var),
    Constant(Option<ModuleIdent>, ConstantName),
    ModuleCall(Box<ModuleCall>),
    Builtin(Box<BuiltinFunction>, Box<Exp>),
    Vector(Loc, usize, Box<Type>, Box<Exp>),
    IfElse(Box<Exp>, Box<Exp>, Box<Exp>),
    While(Box<Exp>, Box<Exp>),
    Loop {
        has_break: bool,
        body: Box<Exp>,
    },
    Block(Sequence),
    Assign(LValueList, Vec<Option<Type>>, Box<Exp>),
    Mutate(Box<Exp>, Box<Exp>),
    Return(Box<Exp>),
    Abort(Box<Exp>),
    Break,
    Continue,
    Dereference(Box<Exp>),
    UnaryExp(UnaryOp, Box<Exp>),
    BinopExp(Box<Exp>, BinOp, Box<Type>, Box<Exp>),
    Pack(ModuleIdent, StructName, Vec<Type>, Fields<(Type, Exp)>),
    ExpList(Vec<ExpListItem>),
    Borrow(bool, Box<Exp>, Field),
    TempBorrow(bool, Box<Exp>),
    BorrowLocal(bool, Var),
    Cast(Box<Exp>, Box<Type>),
    Annotate(Box<Exp>, Box<Type>),
    Spec(SpecId, BTreeMap<Var, Type>),
    UnresolvedError,
}Variants
Unit
Fields
trailing: boolValue(Value)
Move
Copy
Use(Var)
Constant(Option<ModuleIdent>, ConstantName)
ModuleCall(Box<ModuleCall>)
Builtin(Box<BuiltinFunction>, Box<Exp>)
Vector(Loc, usize, Box<Type>, Box<Exp>)
IfElse(Box<Exp>, Box<Exp>, Box<Exp>)
While(Box<Exp>, Box<Exp>)
Loop
Block(Sequence)
Assign(LValueList, Vec<Option<Type>>, Box<Exp>)
Mutate(Box<Exp>, Box<Exp>)
Return(Box<Exp>)
Abort(Box<Exp>)
Break
Continue
Dereference(Box<Exp>)
UnaryExp(UnaryOp, Box<Exp>)
BinopExp(Box<Exp>, BinOp, Box<Type>, Box<Exp>)
Pack(ModuleIdent, StructName, Vec<Type>, Fields<(Type, Exp)>)
ExpList(Vec<ExpListItem>)
Borrow(bool, Box<Exp>, Field)
TempBorrow(bool, Box<Exp>)
BorrowLocal(bool, Var)
Cast(Box<Exp>, Box<Type>)
Annotate(Box<Exp>, Box<Type>)
Spec(SpecId, BTreeMap<Var, Type>)
UnresolvedError
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