[][src]Trait rustyline::hint::Hinter

pub trait Hinter {
    fn hint(&self, line: &str, pos: usize, ctx: &Context<'_>) -> Option<String> { ... }
}

Hints provider

Provided methods

fn hint(&self, line: &str, pos: usize, ctx: &Context<'_>) -> 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.

Loading content...

Implementations on Foreign Types

impl Hinter for ()[src]

impl<'r, H: ?Sized + Hinter> Hinter for &'r H[src]

Loading content...

Implementors

impl Hinter for HistoryHinter[src]

Loading content...