Struct shrust::Shell [] [src]

pub struct Shell<T> { /* fields omitted */ }

A shell

Methods

impl<T> Shell<T>
[src]

Create a new shell, wrapping data, using provided IO

Get a mutable pointer to the inner data

Change the current prompt

Change the current unclosed prompt

Register a shell command. Shell commands get called with a reference to the current shell

Register a command

Register a command that do not accept any argument

Print the help to stdout

Return the command history

Evaluate a command line

Enter the shell main loop, exiting only when the "quit" command is called

Trait Implementations

impl<T> Deref for Shell<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T> DerefMut for Shell<T>
[src]

The method called to mutably dereference a value

impl<T> Clone for Shell<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more