> Calculating the size of a static array
some_array.len()
> Getting the maximum value of an enum
Rust's enums are strongly-typed (I think that's the right phrase), so this is a non-issue.
> Converting an enum to a string
impl Display for MyEnum (and then call to_string() on it)
> Converting a string to an enum
This could be tricky, since Rust enum variants can contain data. But if none of the variants contain data, it would be easy to make a method that returns a Result<MyEnum, CustomParseError>
> Binary file includes
include_bytes! macro (or the include_str! macro, depending on the exact scenario)
> Switch/case is still stupid
Pretty sure Rust's match is a lot better