Rust Boxed values Creating a Box


Example

In stable Rust you create a Box by using the Box::new function.

let boxed_int: Box<i32> = Box::new(1);