Function tsync::utils::build_indentation

source ·
pub fn build_indentation(indentation_amount: i8) -> String
Expand description

Generate a string filled with indentation_amount white-space literal chars.

§Example

for i in 0..64 {
    let indentations: String = (0..i).map(|_| '\u{0020}').collect();
    assert_eq!(indentations.len(), i);
}