That might be the dumbest Rustlang question ever but I promise I tried my best to find the answer in the documentation or any other place on the web.
I can convert a string to a vector of bytes like this:
let bar = bytes!("some string"); Unfortunately I can't do it this way
let foo = "some string"; let bar = bytes!(foo); Because bytes! expects a string literal.
But then, how do I get my foo converted into a vector of bytes?