Struct linefeed::complete::PathCompleter
source · pub struct PathCompleter;
Expand description
Performs completion by searching for filenames matching the word prefix.
Trait Implementations
sourceimpl<Term: Terminal> Completer<Term> for PathCompleter
impl<Term: Terminal> Completer<Term> for PathCompleter
sourcefn complete(
&self,
word: &str,
_reader: &Prompter<'_, '_, Term>,
_start: usize,
_end: usize
) -> Option<Vec<Completion>>
fn complete(
&self,
word: &str,
_reader: &Prompter<'_, '_, Term>,
_start: usize,
_end: usize
) -> Option<Vec<Completion>>
Returns the set of possible completions for the prefix
word
.sourcefn word_start(
&self,
line: &str,
end: usize,
_reader: &Prompter<'_, '_, Term>
) -> usize
fn word_start(
&self,
line: &str,
end: usize,
_reader: &Prompter<'_, '_, Term>
) -> usize
Returns the starting position of the word under the cursor. Read more
Auto Trait Implementations
impl RefUnwindSafe for PathCompleter
impl Send for PathCompleter
impl Sync for PathCompleter
impl Unpin for PathCompleter
impl UnwindSafe for PathCompleter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more