Struct rushell_deps_linefeed::complete::PathCompleter [−][src]
pub struct PathCompleter;
Performs completion by searching for filenames matching the word prefix.
Trait Implementations
impl<Term: Terminal> Completer<Term> for PathCompleter
[src]
impl<Term: Terminal> Completer<Term> for PathCompleter
[src]fn complete(
&self,
word: &str,
_reader: &Prompter<'_, '_, Term>,
_start: usize,
_end: usize
) -> Option<Vec<Completion>>
[src]
fn complete(
&self,
word: &str,
_reader: &Prompter<'_, '_, Term>,
_start: usize,
_end: usize
) -> Option<Vec<Completion>>
[src]Returns the set of possible completions for the prefix word
.
fn word_start(
&self,
line: &str,
end: usize,
_reader: &Prompter<'_, '_, Term>
) -> usize
[src]
fn word_start(
&self,
line: &str,
end: usize,
_reader: &Prompter<'_, '_, Term>
) -> usize
[src]Returns the starting position of the word under the cursor. Read more