declare_joined_str

Macro declare_joined_str 

Source
macro_rules! declare_joined_str {
    ($name:ident, $array:expr, $sep:expr) => { ... };
}
Expand description

Declares a new constant value name with the joined string of array and sep. Example usage:

const_str_join::declare_joined_str!(FLAGS, ["--help", "--version", "--verbose"], "|");
const_str_join::declare_joined_str!(HELP, ["flags:", FLAGS], " ");
assert_eq!(HELP, "flags: --help|--version|--verbose");