Is it possible to specify string literal as a parameter?
And, is it possible to turn something like pub const MAGIC_COMMAND: &str = "CMD01";
into a string literal at compile time?
I tried to solve this problem by writing a macro on my own, but still having some problems to get a string extension at compile time - when I'm using const like shown above... This is for a kind of IC-driver-library. The IC understands a couple of ASCII-commands and I want to provide a central module with available commands and methods to use them easier... rather than to force every user to write those ASCII-commands over and over again.