Crates.io | input_replace |
lib.rs | input_replace |
version | 0.1.1 |
source | src |
created_at | 2022-10-19 04:13:02.207954 |
updated_at | 2022-10-19 04:43:30.469714 |
description | Replace the input character with the specified character |
homepage | |
repository | |
max_upload_size | |
id | 691439 |
size | 4,925 |
use input_replace::inp_rep_with;
let input = inp_rep_with('*');
println!("{}", input);
If you enter "12345", the terminal displays
***** //input
12345 //output
It triggers a panic when a non-ascll value is obtained.
It works in Windows and Linux. It may be problematic to use on Mac systems, as I was unable to test it on a Mac.