macro_rules! a_flex_str {
    ($str:expr) => { ... };
}
Expand description

Create compile time constant AFlexStr (equivalent, but less typing than: <AFlexStr>::from_static("my_literal")

use flexstr::{a_flex_str, AFlexStr};

const STR: AFlexStr = a_flex_str!("This is a constant!");
assert!(STR.is_static())