rustyline::completion

Trait 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.

Implementations on Foreign Types§

Source§

impl Candidate for String

Source§

fn display(&self) -> &str

Source§

fn replacement(&self) -> &str

Implementors§