convert_string
A trait for String-like types to check if a string is a reserved keyword, and convert it to a safe non-keyword if so. Offers some type conversions as well
Only strict and reserved keywords are checked against; weak keywords are not include
You can add this dependency with:
[]
= "0.2.0"
Example
use ConvertString;;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Rust Editions
[]
= { = "0.2.0" }
Future Rust editions may add new keywords, and this crate will be updated to reflect (Or you can create an issue on github if I don't.)
Credit
Huge parts of this library are taken from https://github.com/JoelCourtney/check_keyword
Source
License: Apache-2.0