pub trait AssemblyOutput {
// Required methods
fn emit(&mut self, code: &str);
fn emit_label(&mut self, label: &str);
fn emit_comment(&mut self, comment: &str);
fn get_output(&self) -> &str;
fn clear(&mut self);
fn emit_line(&mut self, indent: u8, code: &str);
}Expand description
Assembly output generation trait
Required Methods§
Sourcefn emit_label(&mut self, label: &str)
fn emit_label(&mut self, label: &str)
Emit a label
Sourcefn emit_comment(&mut self, comment: &str)
fn emit_comment(&mut self, comment: &str)
Emit a comment
Sourcefn get_output(&self) -> &str
fn get_output(&self) -> &str
Get the generated output