5 releases (stable)
1.0.3 | Dec 2, 2022 |
---|---|
0.1.0 | Dec 2, 2022 |
#381 in #source
34 downloads per month
Used in salign
4KB
extabs
Implements expandtabs for String
Installation
Add this line in your Cargo.toml file
extabs = "1.0.3"
Usage
fn main() {
let s = String::from("Hello\tWorld!");
let expanded = s.expandtabs(4);
println!("{}", expanded);
}