Enum term_basics_linux::PromptChar [−][src]
pub enum PromptChar {
Copy,
Substitude(char),
None,
}
Expand description
What kind of character the prompt will print.
Copy
will just print what the user types in.
Substitude(char)
will print that character.
None
will not print anything at all.
Example
use term_basics_linux as tbl;
tbl::println(tbl::input_field_custom(&mut tbl::InputHistory::new(0), tbl::PromptChar::Copy));
tbl::println(tbl::input_field_custom(&mut tbl::InputHistory::new(0), tbl::PromptChar::Substitude('#')));
tbl::println(tbl::input_field_custom(&mut tbl::InputHistory::new(0), tbl::PromptChar::None));
Variants
Substitude(char)
Tuple Fields of Substitude
0: char
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PromptChar
impl Send for PromptChar
impl Sync for PromptChar
impl Unpin for PromptChar
impl UnwindSafe for PromptChar
Blanket Implementations
Mutably borrows from an owned value. Read more