Trait reedline::Hinter[][src]

pub trait Hinter {
    fn handle(
        &mut self,
        line: &str,
        pos: usize,
        history: &dyn History
    ) -> String; }
Expand description

A trait that’s responsible for returning the hint for the current line and position Hints are often shown in-line as part of the buffer, showing the user text they can accept or ignore

Required methods

Handle the hinting duty by using the line, position, and current history

Implementors