sample_headers/
sample_headers.rs1use multiprint::{MultiPrint, Decorate};
2
3fn main() {
4 let s = String::from("Echo..");
5 println!("{}", s.times(5, ' '));
6
7 assert_eq!(s.times(5, ' '), "Echo.. Echo.. Echo.. Echo.. Echo..");
8 assert_eq!("Hello!".to_string().times(2, ' '), "Hello! Hello!");
9
10 println!("{}\n", "Header 1".to_string().underline('-'));
16
17 println!("{}\n", "Header 1".to_string().overline('-'));
23
24 println!("{}\n", "Header 1".to_string().outline('_', '='));
31
32 println!("{}", "Header 1".to_string().border('-', '|'));
39}