split_exact 1.1.0

splitting strings into arrays of slices
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 4.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 619.79 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • voidentente

split_exact

Implements splitting at patterns into exactly N destructurable slices.

Until Pattern API is stabilized, this crate currently only supports single character separators.

Usage

let header = "GET / HTTP/1.1";
let [method, path, http] = header.split_exact(char::is_whitespace);

Also with variant that returns remainder slice.

License

MIT OR Apache-2.0