Trait rustyline::hint::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§