pub struct CompileResult {
pub instructions: Vec<InstructionIR>,
pub def_entries: IndexMap<DefId, Label>,
pub preamble_entry: Label,
}Expand description
Result of compilation.
Fields§
§instructions: Vec<InstructionIR>All generated instructions.
def_entries: IndexMap<DefId, Label>Entry labels for each definition (in definition order).
preamble_entry: LabelEntry label for the universal preamble. The preamble wraps any entrypoint: Obj -> Trampoline -> EndObj -> Return
Trait Implementations§
Source§impl Clone for CompileResult
impl Clone for CompileResult
Source§fn clone(&self) -> CompileResult
fn clone(&self) -> CompileResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompileResult
impl RefUnwindSafe for CompileResult
impl Send for CompileResult
impl Sync for CompileResult
impl Unpin for CompileResult
impl UnwindSafe for CompileResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more