From ff17229ef6e7f7530d72687cf0730493c7143e5e Mon Sep 17 00:00:00 2001 From: kamranahmedse <4921183+kamranahmedse@users.noreply.github.com> Date: Mon, 9 Mar 2026 10:53:46 +0000 Subject: [PATCH] chore: sync content to repo --- .../roadmaps/rust/content/box@WjpkWH7f38y-bHUJ6ruGG.md | 9 +++++++++ .../roadmaps/rust/content/rc@U9Bd-GO0QwYVLvESR4PTb.md | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/data/roadmaps/rust/content/box@WjpkWH7f38y-bHUJ6ruGG.md diff --git a/src/data/roadmaps/rust/content/box@WjpkWH7f38y-bHUJ6ruGG.md b/src/data/roadmaps/rust/content/box@WjpkWH7f38y-bHUJ6ruGG.md new file mode 100644 index 000000000..6f13397ab --- /dev/null +++ b/src/data/roadmaps/rust/content/box@WjpkWH7f38y-bHUJ6ruGG.md @@ -0,0 +1,9 @@ +# Box + +A `Box` in Rust is a smart pointer that allocates memory on the heap. It's primarily used to store data that has a size that's not known at compile time, or when you want to transfer ownership of data without copying it. Think of it as a way to put data on the heap and access it through a pointer, ensuring that the data is automatically deallocated when the `Box` goes out of scope. + +Visit the following resources to learn more: + +- [@official@Using Box to Point to Data on the Heap](https://doc.rust-lang.org/book/ch15-01-box.html) +- [@official@Smart Pointers](https://doc.rust-lang.org/book/ch15-00-smart-pointers.html#smart-pointers) +- [@video@The Box Smart Pointer in Rust](https://www.youtube.com/watch?v=m76sRj2VgGo) \ No newline at end of file diff --git a/src/data/roadmaps/rust/content/rc@U9Bd-GO0QwYVLvESR4PTb.md b/src/data/roadmaps/rust/content/rc@U9Bd-GO0QwYVLvESR4PTb.md index e5e3d793f..76e11b47f 100644 --- a/src/data/roadmaps/rust/content/rc@U9Bd-GO0QwYVLvESR4PTb.md +++ b/src/data/roadmaps/rust/content/rc@U9Bd-GO0QwYVLvESR4PTb.md @@ -4,5 +4,4 @@ Visit the following resources to learn more: -- [@official@Rc in std::rc](https://doc.rust-lang.org/std/rc/struct.Rc.html) - [@official@rct - The Reference Counted Smart Pointer](https://doc.rust-lang.org/book/ch15-04-rc.html#rct-the-reference-counted-smart-pointer) \ No newline at end of file