β‘Smart Pointer
What the hell is Smart Pointer?
What is Pointer & Smart Pointer?
fn main() {
let name = "Thomas";
let name_ref = &name; // name_ref is a reference containing the memory address of "Thomas"
println!("Hello, {}", name_ref);
}Some common types of smart pointers in Rust
Learn More About Common Types of Smart Pointer
π³οΈBox<T>βοΈRc<T>ποΈRefCell<T>Last updated