pub struct RamMachine { /* private fields */ }Implementations§
Source§impl RamMachine
impl RamMachine
pub fn new(code: RamCode, input: Vec<CellValue>) -> Self
pub fn from_str( str: &str, input: Vec<CellValue>, ) -> Result<Self, CodeParseError>
pub fn run(self) -> Result<Vec<CellValue>, RamMachineError>
pub fn run_line(&mut self) -> Result<RunState, RamMachineError>
pub fn get_current_instruction(&self) -> &Instruction
pub fn print_state(&self)
Trait Implementations§
Source§impl Debug for RamMachine
impl Debug for RamMachine
Source§impl PartialEq for RamMachine
impl PartialEq for RamMachine
impl Eq for RamMachine
impl StructuralPartialEq for RamMachine
Auto Trait Implementations§
impl Freeze for RamMachine
impl RefUnwindSafe for RamMachine
impl Send for RamMachine
impl Sync for RamMachine
impl Unpin for RamMachine
impl UnwindSafe for RamMachine
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