tinystr
![Coverage Status](https://coveralls.io/repos/github/zbraniecki/tinystr/badge.svg?branch=master)
tinystr
is a small ASCII-only bounded length string representation.
Usage
use ;
Details
It provides two structs:
TinyStr4
an ASCII-only string limited to 4 characters.TinyStr8
an ASCII-only string limited to 8 characters.
It performs a very tailored set of operations
- to_ascii_lowercase
- to_ascii_uppercase
- to_ascii_titlecase (TinyStr4 only)
- is_ascii_alphanumeric
This set is sufficient for certain classes of uses such as unic-langid
libraries.
Performance
For those uses, TinyStr provides performance characteristics much better than the regular String
.
Status
The crate is fully functional and ready to be used in production. The capabilities can be extended.