pub struct Program {
pub version: Version,
pub instructions: Vec<Instruction>,
}Expand description
A bytecode program consisting of a version and instruction sequence.
Programs can be serialized to/from BLQD binary format (via
to_binary / from_binary)
or SST text assembly (via bytecode::text).
Fields§
§version: VersionProgram version.
instructions: Vec<Instruction>Instructions in execution order.
Implementations§
Trait Implementations§
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