Macro const_gen::const_declaration
source · macro_rules! const_declaration { ( $(#[$attr:meta])* $vis:vis $name:ident = $($val:tt)*) => { ... }; }
Expand description
A macro to help in the creation of const declarations. Allows this syntax:
const_declaration!(visibility VAR_NAME = value)
This is syntactic sugar for calling the CompileConst::const_declaration
function.