Trait mrusty::ReadLine
[−]
[src]
pub trait ReadLine<Error: Display> { fn read(&self, prompt: &str) -> Result<Option<String>, Error>; fn add(&self, line: &str); }
A trait
which performs very basic readline utility.
Required Methods
fn read(&self, prompt: &str) -> Result<Option<String>, Error>
A function that reads one line from the terminal.
fn add(&self, line: &str)
A function that add one line to the readline history.