pub enum Status {
Step,
Print(String),
PrintChar(i32),
ReadInt,
ReadChar,
Exit,
}
Expand description
Current state of the program if no error is thrown
Variants§
Step
No action is needed from outside, next instruction can be called
Print(String)
Print the string
PrintChar(i32)
Convert integer to a character and print it
ReadInt
Read an integer from i/o
ReadChar
Read a character fom i/o
Exit
The program should quit without any errors. Don’t call the step function anymore
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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