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: SignatureIndex
List of locals type. All locals are typed.
code: Vec<Bytecode>
Code stream, function body.
Trait Implementations
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
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