Function rustyline::completion::escape

source ·
pub fn escape(
    input: String,
    esc_char: Option<char>,
    is_break_char: fn(_: char) -> bool,
    quote: Quote,
) -> String
Expand description

Escape any break_chars in input string with esc_char. For example, ‘/User Information’ becomes ‘/User\ Information’ when space is a breaking char and ‘\’ the escape char.