split_exact 0.1.0

splitting strings into arrays of slices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# split_exact

Implements splitting at patterns into exactly `N` destructurable slices.

# Nightly

This crate uses `Pattern` and as of March 15, 2024 requires nightly Rust.

# Usage

```rs
let header = "GET / HTTP/1.1";
let [method, path, http] = header.split_exact::<3>(' ');
```

# License

MIT OR Apache-2.0