Struct move_binary_format::file_format::CodeUnit  
source · [−]pub struct CodeUnit {
    pub locals: SignatureIndex,
    pub code: Vec<Bytecode>,
}Expand description
A CodeUnit is the body of a function. It has the function header and the instruction stream.
Fields
locals: SignatureIndexList of locals type. All locals are typed.
code: Vec<Bytecode>Code stream, function body.
Trait Implementations
sourceimpl PartialEq<CodeUnit> for CodeUnit
 
impl PartialEq<CodeUnit> for CodeUnit
impl Eq for CodeUnit
impl StructuralEq for CodeUnit
impl StructuralPartialEq for CodeUnit
Auto Trait Implementations
impl RefUnwindSafe for CodeUnit
impl Send for CodeUnit
impl Sync for CodeUnit
impl Unpin for CodeUnit
impl UnwindSafe for CodeUnit
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