pub struct Program {
pub instructions: Vec<Instruction>,
pub labels: BTreeMap<String, usize>,
pub equates: BTreeMap<String, i64>,
}Expand description
An assembled program.
Fields§
§instructions: Vec<Instruction>The instructions, in order.
labels: BTreeMap<String, usize>Label name to instruction index.
equates: BTreeMap<String, i64>Name to value, from .equ directives.
Trait Implementations§
impl Eq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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