From e542c32c45b6b1591fdbc694e6c0d669eb58d3dc Mon Sep 17 00:00:00 2001 From: Daniel Franklin Date: Tue, 23 Mar 2021 20:47:37 +0000 Subject: [PATCH] Add heading --- src/send-and-sync.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/send-and-sync.md b/src/send-and-sync.md index 3209a6a..fd1bb94 100644 --- a/src/send-and-sync.md +++ b/src/send-and-sync.md @@ -74,6 +74,8 @@ of their pervasive use of raw pointers to manage allocations and complex ownersh Similarly, most iterators into these collections are Send and Sync because they largely behave like an `&` or `&mut` into the collection. +## Example + [`Box`][box-doc] is implemented as it's own special intrinsic type by the compiler for [various reasons][box-is-special], but we can implement something with similar-ish behavior ourselves to see an example of when it is sound to