[][src]Enum rustws::Status

pub enum Status {
    Step,
    Print(String),
    PrintChar(i32),
    ReadInt,
    ReadChar,
    Exit,
}

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 RefUnwindSafe for Status

impl Send for Status

impl Sync for Status

impl Unpin for Status

impl UnwindSafe for Status

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.