/// 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.
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.
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 .
pub fn complete_cmd(&self, line: &str, pos: usize) -> rustyline::Result<(usize, Vec<String>)> {
        debug!("line={} pos={}", line, pos);
        let v = PrefixCompleter::_complete_cmd(&self.tree, line, pos);
        Ok((pos, v))
    }
pub fn complete_cmd ( & self , line : & str , pos : usize ) -> rustyline :: Result < ( usize , Vec < String > ) > { debug ! ( " " line pos ) ; let v = PrefixCompleter :: _complete_cmd ( & self . tree , line , pos ) ; Ok ( ( pos , v ) ) }
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.
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 .
&self
line
&str
pos
usize