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 position 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 Freeze for FilenameCompleter
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes