Crate rightpad_str

Source
Expand description

§rightpad-str crate.

Obviously the second best crate (after leftpad-str) for the Rust programming language. The crate serves the only goal of implementing leftpad function:

pub fn rightpad(input: &str, width: usize, padding_char: char) -> String;

Functions§

rightpad
Pads the given string on the right with a specified character up to a specified width.