Trait rustyline::hint::Hinter

source ·
pub trait Hinter {
    // Required method
    fn hint(&self, line: &str, pos: usize) -> Option<String>;
}
Expand description

Hints provider

Required Methods§

source

fn hint(&self, line: &str, pos: usize) -> Option<String>

Takes the currently edited line with the cursor position and returns the string that should be displayed or None if no hint is available for the text the user currently typed.

Implementations on Foreign Types§

source§

impl Hinter for ()

source§

fn hint(&self, _line: &str, _pos: usize) -> Option<String>

Implementors§