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

pub trait Hinter {
    type Hint: Hint + 'static;
    fn hint(
        &self,
        line: &str,
        pos: usize,
        ctx: &Context<'_>
    ) -> Option<Self::Hint> { ... } }
Expand description

Hints provider

Associated Types

Specific hint type

Provided methods

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

Implementors