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