Trait Prompt

pub trait Prompt

Provide two versions of the prompt:

Required Methods

fn raw(&self) -> &str

No style, no ANSI escape sequence

Provided Methods

fn styled(&self) -> &str

With style(s), ANSI escape sequences

Currently, the styled version must have the same display width as the raw version.

By default, returns the raw string.

Implementors