Struct add_ed::ui::DummyUI[][src]

pub struct DummyUI<'a> {
    pub input: VecDeque<String>,
    pub print_ui: Option<&'a mut dyn UI>,
}
Expand description

This is a dummy UI. That means it simulates an UI without interfacing with any users.

How to use:

  • Put the input to simulate line-by-line in the input variable.
  • If you want output from print commands put the UI to print with in print_ui.

Fields

input: VecDeque<String>print_ui: Option<&'a mut dyn UI>

Trait Implementations

Get a command for parsing and execution Read more

Get input lines until given character is entered alone on a line Read more

A basic print for output of commands Read more

Print the given selection with the given options Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.