Macro ceiling_macros::group
source · group!() { /* proc-macro */ }Expand description
group! is a utility macro for grouping multiple values into a single key
Example
// this will generate a function called `bucket` that takes an &str and returns an &str
// if the provided value matches any of the values in the macro it will return a shared bucket key
// i.e. `bucket("/help")` will return the same value as `bucket("/help2")`
// if no matches are found, then it will return the value provided
ceiling::group! {
bucket {
"/help", "/help2", "/help3";
"/one", "/two";
}
}