https://github.com/cbarrick/char-circle
https://github.com/cbarrick/char-circle
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cbarrick/char-circle
- Owner: cbarrick
- License: mit
- Created: 2019-04-09T23:55:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T00:03:45.000Z (about 6 years ago)
- Last Synced: 2025-04-06T06:42:30.377Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Char-circle
==================================================A circular buffer for strings and traits for in-place string transforms.
This crate provides two key types: the `CharCircle` struct and the `StringTransform` trait. The `CharCircle` is a circular buffer specialized for UTF-8 strings, and the `StringTransform` trait builds upon it to provide a character-oriented API for in-place string transformations. In short, `StringTransform` allows you to implement transformations as iterator adaptors, with copy-on-write optimizations in mind.
### Documentation
https://docs.rs/char-circle### Usage
Char-circle is a pure Rust library. To use it, simply add it to your `Cargo.toml`:```toml
[dependencies]
char-circle = "0.1.0"
```