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 &str

source§

fn display(&self) -> &str

source§

fn replacement(&self) -> &str

source§

impl Candidate for str

#[deprecated = “Unusable”]

source§

fn display(&self) -> &str

source§

fn replacement(&self) -> &str

source§

impl Candidate for String

source§

fn display(&self) -> &str

source§

fn replacement(&self) -> &str

Implementors§