libaesthetic/lib.rs
1extern crate unicode_hfwidth;
2
3use unicode_hfwidth::to_fullwidth;
4
5/// Takes a string and makes it AESTHETIC in the Vaporwave style.
6///
7/// Strings passed to this function cannot be used afterwords because once
8/// you go aesthetic there is no turning back.
9pub fn make_aesthetic(input: String) -> String {
10 let output: String = input.chars()
11 .map(|x| to_fullwidth(x).unwrap_or(x))
12 .collect();
13 return output;
14}