#substring #list #key #performance #minimal #utility

key-list

A very minimal crate to get you a specific sequence between two characters in a string, fast

1 stable release

1.0.0 Apr 8, 2020

#273 in Parser tooling


Used in 2 crates

MIT license

5KB
61 lines

key-list

A very minimal crate to get you a specific sequence between two characters in a string, fast.

Build status badge Crates io badge License badge

How to use

[dependencies]
key-list = "1"

And some code

let text = "/this/ has some /keys/";
let list = KeyList::new(text, '/', '/');

for key in list {
    println!("{}", key); // '/this/', '/keys/'
}

lib.rs:

A minimalistic crate to help you quickly get substrings of text between 2 characters inside a string.

No runtime deps