pub struct Program {
pub instructions: Instructions,
pub origin: Option<u32>,
}
Expand description
A parsed Redcode program, which can be loaded into a core for execution
Fields§
§instructions: Instructions
The list of instructions in the program. These are one-to-one copied into the core when loaded for execution
origin: Option<u32>
The program’s entry point as an instruction index
Implementations§
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 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