Struct FilenameCompleter
struct FilenameCompleter { ... }
A Completer for file and folder names.
Implementations
impl FilenameCompleter
fn new() -> SelfConstructor
fn complete_path(self: &Self, line: &str, pos: usize) -> Result<(usize, Vec<Pair>)>Takes the currently edited
linewith the cursorposition and returns the start position and the completion candidates for the partial path to be completed.fn complete_path_unsorted(self: &Self, line: &str, pos: usize) -> Result<(usize, Vec<Pair>)>Similar to
Self::complete_path, but the returned paths are unsorted.
impl Completer for FilenameCompleter
fn complete(self: &Self, line: &str, pos: usize, _ctx: &Context<'_>) -> Result<(usize, Vec<Pair>)>
impl Default for FilenameCompleter
fn default() -> Self
impl Freeze for FilenameCompleter
impl RefUnwindSafe for FilenameCompleter
impl Send for FilenameCompleter
impl Sync for FilenameCompleter
impl Unpin for FilenameCompleter
impl UnwindSafe for FilenameCompleter
impl<T> Any for FilenameCompleter
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FilenameCompleter
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FilenameCompleter
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for FilenameCompleter
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for FilenameCompleter
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for FilenameCompleter
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FilenameCompleter
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>