Struct rustyline::completion::FilenameCompleter
source · pub struct FilenameCompleter { /* private fields */ }
Expand description
A Completer
for file and folder names.
Implementations§
source§impl FilenameCompleter
impl FilenameCompleter
sourcepub fn complete_path(
&self,
line: &str,
pos: usize
) -> Result<(usize, Vec<Pair>)>
pub fn complete_path( &self, line: &str, pos: usize ) -> 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 path to be completed.
sourcepub fn complete_path_unsorted(
&self,
line: &str,
pos: usize
) -> Result<(usize, Vec<Pair>)>
pub fn complete_path_unsorted( &self, line: &str, pos: usize ) -> Result<(usize, Vec<Pair>)>
Similar to Self::complete_path
, but the returned paths are unsorted.
Trait Implementations§
source§impl Completer for FilenameCompleter
impl Completer for FilenameCompleter
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more