]> git.proxmox.com Git - rustc.git/blame - src/doc/nomicon/src/arc.md
New upstream version 1.54.0+dfsg1
[rustc.git] / src / doc / nomicon / src / arc.md
CommitLineData
5869c6ff
XL
1# Implementing Arc
2
3In this section, we'll be implementing a simpler version of `std::sync::Arc`.
4Similarly to [the implementation of `Vec` we made earlier](vec.md), we won't be
5taking advantage of as many optimizations, intrinsics, or unstable code as the
6standard library may.
7
8This implementation is loosely based on the standard library's implementation
9(technically taken from `alloc::sync` in 1.49, as that's where it's actually
10implemented), but it will not support weak references at the moment as they
11make the implementation slightly more complex.
12
13Please note that this section is very work-in-progress at the moment.