macro_rules! local_str {
($str:expr) => { ... };
}Expand description
Create compile time constant LocalStr (equivalent, but less typing than:
LocalStr::from_static("my_literal")
use flexstr::{local_str, LocalStr};
const STR: LocalStr = local_str!("This is a constant!");
assert!(STR.is_static())