|
|
@ -79,7 +79,7 @@ commit 4f2dc564851dc04b271a2260c834643dfd86c724</p>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li><code>Box<T></code>,用于在堆上分配值</li>
|
|
|
|
<li><code>Box<T></code>,用于在堆上分配值</li>
|
|
|
|
<li><code>Rc<T></code>,一个引用计数类型,其数据可以有多个所有者</li>
|
|
|
|
<li><code>Rc<T></code>,一个引用计数类型,其数据可以有多个所有者</li>
|
|
|
|
<li><code>RefCell<T></code>,其本身并不是只能指针,不过它管理智能指针<code>Ref</code>和<code>RefMut</code>的访问,在运行时而不是在编译时执行借用规则。</li>
|
|
|
|
<li><code>RefCell<T></code>,其本身并不是智能指针,不过它管理智能指针<code>Ref</code>和<code>RefMut</code>的访问,在运行时而不是在编译时执行借用规则。</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<p>同时我们还将涉及:</p>
|
|
|
|
<p>同时我们还将涉及:</p>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
@ -91,31 +91,31 @@ commit 4f2dc564851dc04b271a2260c834643dfd86c724</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Mobile navigation buttons -->
|
|
|
|
<!-- Mobile navigation buttons -->
|
|
|
|
|
|
|
|
|
|
|
|
<a href="ch14-05-extending-cargo.html" class="mobile-nav-chapters previous">
|
|
|
|
<a href="ch14-05-extending-cargo.html" class="mobile-nav-chapters previous">
|
|
|
|
<i class="fa fa-angle-left"></i>
|
|
|
|
<i class="fa fa-angle-left"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="ch15-01-box.html" class="mobile-nav-chapters next">
|
|
|
|
<a href="ch15-01-box.html" class="mobile-nav-chapters next">
|
|
|
|
<i class="fa fa-angle-right"></i>
|
|
|
|
<i class="fa fa-angle-right"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="ch14-05-extending-cargo.html" class="nav-chapters previous" title="You can navigate through the chapters using the arrow keys">
|
|
|
|
<a href="ch14-05-extending-cargo.html" class="nav-chapters previous" title="You can navigate through the chapters using the arrow keys">
|
|
|
|
<i class="fa fa-angle-left"></i>
|
|
|
|
<i class="fa fa-angle-left"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="ch15-01-box.html" class="nav-chapters next" title="You can navigate through the chapters using the arrow keys">
|
|
|
|
<a href="ch15-01-box.html" class="nav-chapters next" title="You can navigate through the chapters using the arrow keys">
|
|
|
|
<i class="fa fa-angle-right"></i>
|
|
|
|
<i class="fa fa-angle-right"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -128,7 +128,7 @@ commit 4f2dc564851dc04b271a2260c834643dfd86c724</p>
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Livereload script (if served using the cli tool) -->
|
|
|
|
<!-- Livereload script (if served using the cli tool) -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="highlight.js"></script>
|
|
|
|
<script src="highlight.js"></script>
|
|
|
|
<script src="book.js"></script>
|
|
|
|
<script src="book.js"></script>
|
|
|
|