Enum term_basics_linux::PrintChar
source · pub enum PrintChar {
Copy,
Substitute(char),
None,
}
Expand description
What kind of character the input field will print.
Copy
will just print what the user types in.
Substitute(char)
will print that character.
None
will not print anything at all.
Example
use term_basics_linux as tbl;
println!("{}", tbl::input_field(&mut tbl::InputList::new(0), tbl::PrintChar::Copy, true));
println!("{}", tbl::input_field(&mut tbl::InputList::new(0), tbl::PrintChar::Substitute('#'), true));
println!("{}", tbl::input_field(&mut tbl::InputList::new(0), tbl::PrintChar::None, true));
Variants§
Trait Implementations§
source§impl PartialEq for PrintChar
impl PartialEq for PrintChar
impl Copy for PrintChar
impl StructuralPartialEq for PrintChar
Auto Trait Implementations§
impl RefUnwindSafe for PrintChar
impl Send for PrintChar
impl Sync for PrintChar
impl Unpin for PrintChar
impl UnwindSafe for PrintChar
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more