https://github.com/mzabaluev/range-split
Splitting sequences with range syntax in Rust
https://github.com/mzabaluev/range-split
buffers collections rust rust-library
Last synced: 7 months ago
JSON representation
Splitting sequences with range syntax in Rust
- Host: GitHub
- URL: https://github.com/mzabaluev/range-split
- Owner: mzabaluev
- License: mit
- Created: 2019-06-16T11:04:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T04:26:45.000Z (over 4 years ago)
- Last Synced: 2025-02-28T10:38:12.146Z (7 months ago)
- Topics: buffers, collections, rust, rust-library
- Language: Rust
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Splitting Sequences with Range Syntax
This library crate provides a trait and support utilities adding
convenience methods for splitting sequences accordingly to a given range.The primary use case for the `TakeRange` trait are data container libraries
such as [bytes][bytes], where representations of data buffers can be efficiently
split into smaller parts, but the inherent methods for doing this tend to be
not very mnemonic.
Implementations of the trait parameterized with different range types
provide convenient polymorphism with the range syntax.[bytes]: https://crates.io/crates/bytes
## License
This project is licensed under the [MIT license](LICENSE).
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in `range-split` by you, shall be licensed as MIT, without any
additional terms or conditions.