Rust 1.72.0 new feature: String leak!
Channel:
Subscribers:
8,090
Published on ● Video Link: https://www.youtube.com/watch?v=t-LCmZQ5zrQ
#rust Strings now have a leak option! This gives us a way to get a &’ static str from a string at runtime which previously was only possible using a lot more code.
you can find the documentation for the new method at https://doc.rust-lang.org/std/string/struct.String.html#method.leak
this was recorded live on stream at https://www.twitch.tv/brookzerker.
if you have any topics you’d like to see me cover in a “short” like this please comment below!