Owned Str
This crate offers a stack equivalent to a String where you can choose the buffer size.
This as 2 benefits:
- No allocation, so it is 100%
#![no_std]. - A lot of functions can be marked
const, so you can create/manipulate strings at compile time.
use ;
const
const
const S: &str = make_str.as_str;
If you would like to see a String method not already implemented, or a str method that could be made const, feel free to open an issue on github and PR are welcome!