restricted-text

Restricted Text strings and I/O streams

Github Actions CI Status crates.io page docs.rs docs

*This is not yet even an early experiment! The Restricted Text format is actively evolving and the code doesn't work at all yet!* `restricted-text` defines several utilities for working with a subset of Unicode called [Restricted Text]: - [`RestrictedString`] and [`RestrictedStr`] are similar to [`TextString`] and [`TextStr`] using Restricted Text. Restricted Text excludes some forms of visual ambiguity. - [`RestrictedReader`] and [`RestrictedWriter`] are input and output streams which use the Restricted Text format. On input *and* output, non-restricted content is diagnosed as errors. - [`RestrictedDuplexer`] is a [`Duplex`] for reading and writing on an interactive stream using Restricted Text. [`RestrictedString`]: https://docs.rs/basic-text/latest/basic_text/struct.RestrictedString.html [`RestrictedStr`]: https://docs.rs/basic-text/latest/basic_text/struct.RestrictedStr.html [`RestrictedReader`]: https://docs.rs/basic-text/latest/basic_text/struct.RestrictedReader.html [`RestrictedWriter`]: https://docs.rs/basic-text/latest/basic_text/struct.RestrictedWriter.html [`RestrictedDuplexer`]: https://docs.rs/basic-text/latest/basic_text/struct.RestrictedDuplexer.html [`TextString`]: https://docs.rs/basic-text/latest/basic_text/struct.TextString.html [`TextStr`]: https://docs.rs/basic-text/latest/basic_text/struct.TextStr.html [`Duplex`]: https://docs.rs/duplex/latest/duplex/trait.Duplex.html [Restricted Text]: https://github.com/sunfishcode/basic-text/blob/main/docs/RestrictedText.md