Trait dialoguer::theme::Theme [−][src]
Implements a theme for dialoguer.
Provided methods
fn format_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a prompt.
fn format_error(&self, f: &mut dyn Write, err: &str) -> Result
[src]
Formats out an error.
fn format_confirm_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
Formats a confirm prompt.
fn format_confirm_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
Formats a confirm prompt after selection.
fn format_input_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
Formats an input prompt.
fn format_input_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
Formats an input prompt after selection.
fn format_password_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a password prompt.
fn format_password_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
Formats a password prompt after selection.
fn format_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a select prompt.
fn format_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
Formats a select prompt after selection.
fn format_multi_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a multi select prompt.
fn format_sort_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a sort prompt.
fn format_multi_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Formats a multi_select prompt after selection.
fn format_sort_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Formats a sort prompt after selection.
fn format_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
Formats a select prompt item.
fn format_multi_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
Formats a multi select prompt item.
fn format_sort_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
Formats a sort prompt item.
Implementors
impl Theme for ColorfulTheme
[src]
fn format_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a prompt.
fn format_error(&self, f: &mut dyn Write, err: &str) -> Result
[src]
Formats an error
fn format_input_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
Formats an input prompt.
fn format_confirm_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
Formats a confirm prompt.
fn format_confirm_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
Formats a confirm prompt after selection.
fn format_input_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
Formats an input prompt after selection.
fn format_password_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
Formats a password prompt after selection.
fn format_multi_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Formats a multi select prompt after selection.
fn format_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
Formats a select prompt item.
fn format_multi_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
Formats a multi select prompt item.
fn format_sort_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
Formats a sort prompt item.
impl Theme for CustomPromptCharacterTheme
[src]
fn format_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a prompt.
fn format_input_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
Formats an input prompt.
fn format_input_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
Formats an input prompt after selection.
fn format_multi_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Formats a multi select prompt after selection.