Struct rustyline::completion::FilenameCompleter
source · [−]pub struct FilenameCompleter { /* private fields */ }
Expand description
A Completer
for file and folder names.
Implementations
Trait Implementations
sourceimpl Completer for FilenameCompleter
impl Completer for FilenameCompleter
sourcefn complete(
&self,
line: &str,
pos: usize,
_ctx: &Context<'_>
) -> Result<(usize, Vec<Pair>)>
fn complete(
&self,
line: &str,
pos: usize,
_ctx: &Context<'_>
) -> Result<(usize, Vec<Pair>)>
Takes the currently edited line
with the cursor pos
ition and
returns the start position and the completion candidates for the
partial word to be completed. Read more
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.
Auto Trait Implementations
impl RefUnwindSafe for FilenameCompleter
impl Send for FilenameCompleter
impl Sync for FilenameCompleter
impl Unpin for FilenameCompleter
impl UnwindSafe for FilenameCompleter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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