Struct linefeed::complete::DummyCompleter
source · pub struct DummyCompleter;
Expand description
Completer
type that performs no completion
This is the default Completer
for a new Prompter
instance.
Trait Implementations
sourceimpl<Term: Terminal> Completer<Term> for DummyCompleter
impl<Term: Terminal> Completer<Term> for DummyCompleter
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,
prompter: &Prompter<'_, '_, Term>
) -> usize
fn word_start(
&self,
line: &str,
end: usize,
prompter: &Prompter<'_, '_, Term>
) -> usize
Returns the starting position of the word under the cursor. Read more
Auto Trait Implementations
impl RefUnwindSafe for DummyCompleter
impl Send for DummyCompleter
impl Sync for DummyCompleter
impl Unpin for DummyCompleter
impl UnwindSafe for DummyCompleter
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