3 ms·
1) A typesafe variant of this example, caught by the compiler, is what he implements further down 2) There is. Rust has the Drop trait, which guarantees destruc
by strictfp 7y ago
1) A typesafe variant of this example, caught by the compiler, is what he implements further down
2) There is. Rust has the Drop trait, which guarantees destruction when going out of scope. Even better than `with` statements since the API doesn't require anything special from the user.