Enum evaltrees::repl::ReplCommand[][src]

pub enum ReplCommand {
    Decl(CstDecl),
    Evaluator(fn(_: Vec<Decl<()>>) -> Box<Evaluator>),
    Expr(Expr),
    Help,
    List,
    PrintStyle(PrintStyle),
    Quit,
    Reset,
    Typeof(Expr),
}

A command entered at the REPL.

Variants

Adds a new declaration.

Sets the function used to construct an evaluator.

Evaluates an expression.

Prints a help menu.

Lists all declarations.

Changes the print style.

Quits the REPL.

Clears all declarations from the REPL.

Gets the type of an expression.

Methods

impl ReplCommand
[src]

Returns a help message for the commands.

Trait Implementations

impl FromStr for ReplCommand
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Clone for ReplCommand
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ReplCommand
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ReplCommand
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ReplCommand

impl Sync for ReplCommand