pub fn center(txt: &str, space: usize) -> Option<String>
Expand description

Aligns the text to the center

Will return None if there is not enough space to fit the text (length of txt > space)