Module rustyline::completion
source · Expand description
Completion API
Structs
- A
Completer
for file and folder names. - Completion candidate pair
Enums
- Kind of quote.
Traits
- A completion candidate.
- To be called for tab-completion.
Functions
- Escape any
break_chars
ininput
string withesc_char
. For example, ‘/User Information’ becomes ‘/User\ Information’ when space is a breaking char and ‘\’ the escape char. - Given a
line
and a cursorpos
ition, try to find backward the start of a word. Return (0,line[..pos]
) if no break char has been found. Return the word and its start position (idx,line[idx..pos]
) otherwise. - Returns the longest common prefix among all
Candidate::replacement()
s. - Remove escape char