method str.padEnd
Pads on the right with fill up to width characters.
Example:
fn main() io {
print("[{"ab".padEnd(4)}]")
}Output
[ab ]
pub(api) fn padEnd(width: usize, fill: char = ' ') -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
width | usize |
fill | char = ' ' |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:715