https://github.com/cad97/str-index
A sketch of a general Rust string index newtype
https://github.com/cad97/str-index
Last synced: over 1 year ago
JSON representation
A sketch of a general Rust string index newtype
- Host: GitHub
- URL: https://github.com/cad97/str-index
- Owner: CAD97
- License: apache-2.0
- Created: 2019-10-08T18:14:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T04:12:02.000Z (over 6 years ago)
- Last Synced: 2025-01-24T16:10:28.476Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# str-index
A sketch for a general Rust string index newtype.
Discuss on Zulip:
The idea is to produce [one API to replace](https://xkcd.com/927/) the
[veritable number of Pos/Span structures on crates](https://github.com/CAD97/str-index/pull/1#issuecomment-539694123).
We have tentative buy-in from [text_unit](https://lib.rs/crates/text_unit) (used by rowan/rust-analyzer) and
[codespan](https://lib.rs/crates/codespan) (used by gluon) at least for adopting a unified type.
## License
Licensed under either of
* Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.