rustyline::hint

Trait Hint

Source
pub trait Hint {
    // Required methods
    fn display(&self) -> &str;
    fn completion(&self) -> Option<&str>;
}
Expand description

A hint returned by Hinter

Required Methods§

Source

fn display(&self) -> &str

Text to display when hint is active

Source

fn completion(&self) -> Option<&str>

Text to insert in line when right arrow is pressed

Implementations on Foreign Types§

Source§

impl Hint for String

Source§

fn display(&self) -> &str

Source§

fn completion(&self) -> Option<&str>

Implementors§