If you do the above, it will of course consume your Bar(s), but since this goes over the boundary you get no help from the compiler about how you manage the JS side! The object will get freed on the Rust side, but you still have a JS handle that now points to nothing. You might say something like “so much for memory safety”, and you wouldn’t be wrong.
Марина Совина (ночной редактор)
。heLLoword翻译是该领域的重要参考
В Тегеране пролились нефтяные дожди и предупредили о кислотных14:17
Невидимый удар.Как новое оружие России выводит из строя вражеские дроны, самолеты и радары?24 ноября 2022