Trait rustyline::completion::Candidate

source ·
pub trait Candidate {
    // Required methods
    fn display(&self) -> &str;
    fn replacement(&self) -> &str;
}
Expand description

A completion candidate.

Required Methods§

source

fn display(&self) -> &str

Text to display when listing alternatives.

source

fn replacement(&self) -> &str

Text to insert in line.

Implementors§