Trait Hinter

trait Hinter

Hints provider

Associated Types

type Hint: TraitBound { trait_: Path { path: "Hint", id: Id(695), args: None }, generic_params: [], modifier: None } + Outlives("'static")

Specific hint type

Provided Methods

fn hint(self: &Self, line: &str, pos: usize, ctx: &Context<'_>) -> Option<<Self as >::Hint>

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.

Implementors