gradient-string 0.2.0

gradient-string is a safe crate to iterate over a gradient of permutations of string slices
Documentation
  • Coverage
  • 25%
    3 out of 12 items documented3 out of 12 items with examples
  • Size
  • Source code size: 5.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.27 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • gabrielfalcao/gradient-string
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gabrielfalcao

Gradient String

Gradient String is a safe crate to iterate over a gradient of permutations of string slices.

Example

use gradient_string::Gradient;

let result = Gradient::new(" abc ")
    .collect::<Vec<String>>();

assert_eq!(
    result,
    vec![
        " ", "a", "b", "c", " ", " a", "ab", "bc", "c ", " ab", "abc", "bc ", " abc",
        "abc ", " abc "
    ]
);