Disclaimer: there may be errors in these examples. Copy them at your own risk.
Some snippets and examples I want to be able to refer to while learning the Rust Language. Having the snippets here makes it easier for me to remember them.
I have found it useful to be able to convert a Vec<T>
into a Vec<String>
, especially for tests where I want to convert a Vec<str>
into a Vec<String>
for use elsewhere in the application.