flyer 2.7.0

HTTP framework for rust
Documentation
1
2
3
4
5
6
7
pub fn string_fixed_length(input: &str, length: usize) -> String {
    if input.len() < length {
        return format!("{:<width$}", input, width = length)
    } 

    return input.chars().take(length).collect()
}