Enum term_basics_linux::PromptChar
source · 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
Copy
Substitude(char)
None
Trait Implementations
sourceimpl Clone for PromptChar
impl Clone for PromptChar
sourcefn clone(&self) -> PromptChar
fn clone(&self) -> PromptChar
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PromptChar
impl Debug for PromptChar
sourceimpl PartialEq<PromptChar> for PromptChar
impl PartialEq<PromptChar> for PromptChar
sourcefn eq(&self, other: &PromptChar) -> bool
fn eq(&self, other: &PromptChar) -> bool
impl Copy for PromptChar
impl StructuralPartialEq for PromptChar
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more