pub struct RamCode {
pub instructions: Vec<Instruction>,
pub jump_table: HashMap<String, CellAddress>,
}Fields§
§instructions: Vec<Instruction>§jump_table: HashMap<String, CellAddress>Implementations§
Source§impl RamCode
impl RamCode
pub fn new() -> RamCode
pub fn push_line(&mut self, line: &str) -> Result<(), CodeParseError>
pub fn add_instruction(&mut self, instruction: Instruction)
Trait Implementations§
impl Eq for RamCode
impl StructuralPartialEq for RamCode
Auto Trait Implementations§
impl Freeze for RamCode
impl RefUnwindSafe for RamCode
impl Send for RamCode
impl Sync for RamCode
impl Unpin for RamCode
impl UnwindSafe for RamCode
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