[−][src]Trait rustyline::hint::Hinter
Hints provider
Associated Types
Loading content...Provided methods
pub fn hint(
&self,
line: &str,
pos: usize,
ctx: &Context<'_>
) -> Option<Self::Hint>
[src]
&self,
line: &str,
pos: usize,
ctx: &Context<'_>
) -> Option<Self::Hint>
Takes the currently edited line
with the cursor pos
ition 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
impl Hinter for ()
[src]
impl<'r, H: ?Sized + Hinter> Hinter for &'r H
[src]
type Hint = H::Hint
pub fn hint(
&self,
line: &str,
pos: usize,
ctx: &Context<'_>
) -> Option<Self::Hint>
[src]
&self,
line: &str,
pos: usize,
ctx: &Context<'_>
) -> Option<Self::Hint>