fn highlight_prompt<'b, 's: 'b, 'p: 'b>(
        &'s self,
        prompt: &'p str,
        default: bool,
    ) -> Cow<'b, str> {
        if default {
            Borrowed(&self.colored_prompt)
        } else {
            Borrowed(prompt)
        }
    }
// Takes the prompt and returns the highlighted version (with ANSI color).
Takes the prompt and returns the highlighted version (with ANSI color).
Takes the prompt and returns the highlighted version ( with ANSI color ) .
fn highlight_prompt<'b, 's: 'b, 'p: 'b>(
        &'s self,
        prompt: &'p str,
        default: bool,
    ) -> Cow<'b, str> {
        if default {
            Borrowed(&self.colored_prompt)
        } else {
            Borrowed(prompt)
        }
    }
fn highlight_prompt < ' b , ' s : ' b , ' p : ' b > ( & ' s self , prompt : & ' p str , default : bool , ) -> Cow < ' b , str > { if default { Borrowed ( & self . colored_prompt ) } else { Borrowed ( prompt ) } }
Takes the prompt and returns the highlighted version (with ANSI color).
Takes the prompt and returns the highlighted version ( with ANSI color ) .
&'s self
prompt
&'p str
default
bool
&'s self
prompt
&'p str
default
bool