All values in Rust are stack allocated by default. Values can be boxed (allocated in the heap) using the box construct. A box, with type ... use std::mem;.
確定! 回上一頁