I dream of starting an indie game studio with others passionate about gamedev.
Perfect memory safety (outside of ffi ofc) is implemented in a lot of languages. What makes Rust unique is that it gives you reliable memory safety without requiring a garbage collector.
Perfect memory safety (outside of ffi ofc) is implemented in a lot of languages. What makes Rust unique is that it gives you reliable memory safety without requiring a garbage collector.
There is a setting in the chat tab to allow anyone to DM you.
There is a setting in the chat tab to allow anyone to DM you.
I could never get LLMs to produce usable code for Rust but I recently started working on a React project and the difference is night and day.
It can produce working things in react without anything changing about how I prompt it.
I could never get LLMs to produce usable code for Rust but I recently started working on a React project and the difference is night and day.
It can produce working things in react without anything changing about how I prompt it.
Functions to iterate over the variants or convert from int to the variant can only be implemented for enums that don't hold any data.
So rust does not implement them at all.
Functions to iterate over the variants or convert from int to the variant can only be implemented for enums that don't hold any data.
So rust does not implement them at all.
For a simple enum like Clex you can just transmute it as shown below. Assuming we are sure that the value is a valid variant.
For a simple enum like Clex you can just transmute it as shown below. Assuming we are sure that the value is a valid variant.
DM me if you are interested.
DM me if you are interested.