pub struct Program { /* private fields */ }
Expand description
§Program memory
Implementations§
Source§impl Program
impl Program
pub fn error(&mut self, error: Error)
pub fn append(&mut self, link: Link) -> Result<(), Error>
pub fn get(&self, addr: Address) -> Option<Opcode>
pub fn read_data(&mut self) -> Result<Val, Error>
pub fn restore_data(&mut self, addr: Address)
pub fn line_number_for(&self, op_addr: Address) -> LineNumber
pub fn clear(&mut self)
pub fn compile<'b, T: IntoIterator<Item = &'b Line>>(&mut self, lines: T)
pub fn link(&mut self) -> (Address, Arc<Vec<Error>>, Arc<Vec<Error>>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl !Send for Program
impl !Sync for Program
impl Unpin 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