pub struct Assembler { /* private fields */ }
Implementations§
Source§impl Assembler
impl Assembler
pub fn new() -> Self
pub fn parse_register(reg: &str) -> Result<u32, AssemblerError>
pub fn assemble_line(&mut self, line: &str) -> Result<Vec<u32>, AssemblerError>
pub fn assemble_program( &mut self, program: &str, ) -> Result<BytecodeFile, AssemblerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assembler
impl RefUnwindSafe for Assembler
impl Send for Assembler
impl Sync for Assembler
impl Unpin for Assembler
impl UnwindSafe for Assembler
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