Struct rustyline::completion::FilenameCompleter  
                   
                       [−]
                   
               [src]
pub struct FilenameCompleter { /* fields omitted */ }Methods
impl FilenameCompleter[src]
fn new() -> FilenameCompleter
Trait Implementations
impl Default for FilenameCompleter[src]
fn default() -> FilenameCompleter
Returns the "default value" for a type. Read more
impl Completer for FilenameCompleter[src]
fn complete(&self, line: &str, pos: usize) -> Result<(usize, Vec<String>)>
Takes the currently edited line with the cursor position and returns the start position and the completion candidates for the partial word to be completed. "ls /usr/loc" => Ok((3, vec!["/usr/local/"])) Read more
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
Updates the edited line with the elected candidate.