Macro eval_encoded

Source
eval_encoded!() { /* proc-macro */ }
Expand description

Eval encoded strings that maybe are from other macros.

The unique thing this macro does is omit the first and last token,that is,the quote ".This might be useful when you receive a str into a macro and you want evaluate they to not waste more code in replicate the behaviour,while you also want the string for other things,saving you from a possible parse.

The indentifiers are parsed literally in procedural macros so this macro is not a security problem as a true eval is in a scripted language.