[][src]Enum papyrus::input::InputResult

pub enum InputResult {
    Command(String),
    Program(Input),
    Empty,
    More,
    Eof,
    InputError(String),
}

Possible results from reading input from InputReader

Variants

Command(String)

Command or commands in a line.

Program(Input)

Code as input

Empty

An empty line

More

Needs more input; i.e. there is an unclosed delimiter.

Eof

End of file reached.

InputError(String)

Error while parsing input.

Trait Implementations

impl Debug for InputResult[src]

impl PartialEq<InputResult> for InputResult[src]

impl StructuralPartialEq for InputResult[src]

Auto Trait Implementations

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> Erased for T[src]

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

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

impl<E> SpecializationError for E[src]

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

type Error = !

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.