const_str

Macro const_str 

Source
macro_rules! const_str {
    (
            $(#[$outer:meta])*
            $name:ident, $content:expr
        ) => { ... };
    (
            $(
                $(#[$outer:meta])*
                $name:ident $content:expr
            ),+ $(,)?
        ) => { ... };
}
Expand description

Macro to not repeat yourself writing const IDENT: &str = CONTENT

Allows usage of calling one at a time:

const_str!(NAME, "STRING")

or multiple at a time to even save repeated “const_str!” invokations:

const_str! {
    NAME1 "STRING",
    NAME2 "STRING",
}