rustmax::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.

Implementors§

Source§

impl Candidate for Pair

Source§

impl<T> Candidate for T
where T: AsRef<str>,