Struct add_ed::ui::DummyUI [−][src]
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
impl<'a> UI for DummyUI<'a>
[src]
impl<'a> UI for DummyUI<'a>
[src]fn get_command(&mut self, _buffer: &dyn Buffer) -> Result<String, &'static str>
[src]
fn get_command(&mut self, _buffer: &dyn Buffer) -> Result<String, &'static str>
[src]Get a command for parsing and execution Read more
fn get_input(
&mut self,
_buffer: &dyn Buffer,
terminator: char
) -> Result<Vec<String>, &'static str>
[src]
fn get_input(
&mut self,
_buffer: &dyn Buffer,
terminator: char
) -> Result<Vec<String>, &'static str>
[src]Get input lines until given character is entered alone on a line Read more