#string #source #expandtabs

extabs

Implements expandtabs for String

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

MIT license

4KB

extabs

Implements expandtabs for String

Crates.io Crates.io (recent)

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);
}

No runtime deps