Answers for "rust how to force something to go out of scope, deleteing data"

0

drop variable rust

let v = vec![1, 2, 3];

drop(v); // explicitly drop the vector
Posted by: Guest on August-23-2020

Code answers related to "rust how to force something to go out of scope, deleteing data"

Browse Popular Code Answers by Language