pub trait TerminalIn {
    // Required method
    fn read_line(
        &mut self,
        prompt: Option<&str>,
        buffer: &mut String
    ) -> Result<()>;
}
Expand description

Input operations from the terminal.

Required Methods§

source

fn read_line(&mut self, prompt: Option<&str>, buffer: &mut String) -> Result<()>

Read a line from the terminal and append it to the provided buffer.

Implementations on Foreign Types§

source§

impl TerminalIn for Stdin

source§

fn read_line(&mut self, prompt: Option<&str>, buffer: &mut String) -> Result<()>

Implementors§