Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 735 Bytes

choosing-your-guarantees.md

File metadata and controls

22 lines (14 loc) · 735 Bytes

% Choosing your Guarantees

There is a new edition of the book and this is an old link.

Smart pointers are data structures that act like a pointer, but they also have additional metadata and capabilities. The different smart pointers defined in Rust’s standard library provide extra functionality beyond what references provide.

let b = Box::new(5);
println!("b = {b}");

Here are the relevant sections in the new and old books: