原书出处
Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)
3 Chapter 3. Concepts Smart pointers
exists result in a
runtime panic! rather than a compile-time error. For example, one pattern that breaks the one-way flow of ownership in tree-like data structures is when there’s an “owner” pointer back from an item to the thing that owns it, as shown in Figure 3-3. These owner links are useful for moving around the data structure; for example, adding a new sibling to a Leaf
needs to involve the
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch03.html#id87
EPUB SHA-256:523496927c4fd2d3fc11c9b81ad96b76201e66d746b6ac29d71d61d3517181c1