rightpad-str 6.6.6

Obviously the second best crate (after `leftpad-str`) for the Rust programming language. The crate serves the only goal of implementing `rightpad` function.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 533.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • abs0luty/rightpad
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • abs0luty

rightpad-str crate.

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

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

Examples

assert_eq!(rightpad("hello", 8, '*'), "hello***");
assert_eq!(rightpad("rust", 6, ' '), "rust  ");