Enum move_ir_types::ast::FunctionBody
source · pub enum FunctionBody {
Move {
locals: Vec<(Var, Type)>,
code: Block_,
},
Bytecode {
locals: Vec<(Var, Type)>,
code: BytecodeBlocks,
},
Native,
}
Expand description
The body of a Move function
Variants§
Move
The body is declared
locals
are all of the declared locals
code
is the code that defines the procedure
Bytecode
Native
The body is provided by the runtime
Trait Implementations§
source§impl Clone for FunctionBody
impl Clone for FunctionBody
source§fn clone(&self) -> FunctionBody
fn clone(&self) -> FunctionBody
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 FunctionBody
impl Debug for FunctionBody
source§impl Display for FunctionBody
impl Display for FunctionBody
source§impl PartialEq<FunctionBody> for FunctionBody
impl PartialEq<FunctionBody> for FunctionBody
source§fn eq(&self, other: &FunctionBody) -> bool
fn eq(&self, other: &FunctionBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.