pub trait Completer {
type Candidate: Candidate;
// Required method
fn complete(
&self,
line: &str,
pos: usize,
) -> Result<(usize, Vec<Self::Candidate>)>;
// Provided method
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str) { ... }
}
Expand description
To be called for tab-completion.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
Updates the edited line
with the elected
candidate.