pub struct CaoCompiledProgram {
pub bytecode: Vec<u8>,
pub data: Vec<u8>,
pub labels: Labels,
pub variables: Variables,
pub cao_lang_version: String,
pub trace: CaoHashMap<u32, Trace>,
}
Fields§
§bytecode: Vec<u8>
Instructions
data: Vec<u8>
Data used by instuctions with variable length inputs
labels: Labels
§variables: Variables
§cao_lang_version: String
§trace: CaoHashMap<u32, Trace>
Implementations§
Source§impl CaoCompiledProgram
impl CaoCompiledProgram
pub fn variable_id(&self, name: &str) -> Option<VariableId>
pub fn print_disassembly(&self)
pub fn disassemble_string(&self) -> String
pub fn disassemble_writer(&self, writer: impl Write) -> Result<()>
Trait Implementations§
Source§impl Clone for CaoCompiledProgram
impl Clone for CaoCompiledProgram
Source§fn clone(&self) -> CaoCompiledProgram
fn clone(&self) -> CaoCompiledProgram
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CaoCompiledProgram
impl Debug for CaoCompiledProgram
Source§impl Default for CaoCompiledProgram
impl Default for CaoCompiledProgram
Source§impl<'de> Deserialize<'de> for CaoCompiledProgram
impl<'de> Deserialize<'de> for CaoCompiledProgram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CaoCompiledProgram
impl RefUnwindSafe for CaoCompiledProgram
impl Send for CaoCompiledProgram
impl Sync for CaoCompiledProgram
impl Unpin for CaoCompiledProgram
impl UnwindSafe for CaoCompiledProgram
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