Skip to main content

constant_string

Macro constant_string 

Source
macro_rules! constant_string {
    ($name:ident, $code_name:ident, $code:literal) => { ... };
}
Expand description

Implement a constant string.

ยงExample

constant_string!(NotFoundErrorCode, NOT_FOUND_ERROR_CODE, "notFound");