4 ms·
I don't get your examples. The rust code you pasted doesn't show any lifetime. The `&f` in your imgui example is equivalent to the `&mut age`. Are you just c
by jenadine 10mo ago
I don't get your examples.
The rust code you pasted doesn't show any lifetime.
The `&f` in your imgui example is equivalent to the `&mut age`.
Are you just comparing the syntax? It just take a couple of hours to learn the syntax by following a tutorial and that `&mut` in rust is the same as `&` in C, not to mention that the compiler error tell you to add the `mut` if it is missing.
Also 0..=120 is much more clear than passing to arguments 0.0f, 1.0f. it makes it obvious what it is while looking at the imgui call it isn't.