subsl

subsl extends the slices you know and love with some additional functionality.

For example, usually, you can't split a byte slice on a subslice; with subsl, you can!

Examples

```rust use subsl::Splitter;

let httpget: &[u8] = &*b"GET / HTTP/1.0\r\n\r\nsome data in the body"; let sep = b"\r\n\r\n"; let mut iter = httpget.subsl_split(sep); let headers = iter.next().unwrap(); let body = iter.next().unwrap();

asserteq!(headers, b"GET / HTTP/1.0"); asserteq!(body, b"some data in the body"); ```

License: Apache-2.0