<li><ahref="dtor-finally.html">Finalisation in destructors</a> and
<li><ahref="dtor-finally.html">Finalisation in destructors</a> and
<ahref="../patterns/RAII.html">RAII guards</a> can benefit from tight control over lifetimes.</li>
<ahref="../patterns/behavioural/RAII.html">RAII guards</a> can benefit from tight control over
lifetimes.</li>
<li>For conditionally filled <code>Option<&T></code>s of (mutable) references, one can
<li>For conditionally filled <code>Option<&T></code>s of (mutable) references, one can
initialize an <code>Option<T></code> directly and use its <ahref="https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref"><code>.as_ref()</code></a> method to get an
initialize an <code>Option<T></code> directly and use its <ahref="https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref"><code>.as_ref()</code></a> method to get an
<h1id="memtake_-replace_-to-keep-owned-values-in-changed-enums"><aclass="header"href="#memtake_-replace_-to-keep-owned-values-in-changed-enums"><code>mem::{take(_), replace(_)}</code> to keep owned values in changed enums</a></h1>
<h1id="memtake_-replace_-to-keep-owned-values-in-changed-enums"><aclass="header"href="#memtake_-replace_-to-keep-owned-values-in-changed-enums"><code>mem::{take(_), replace(_)}</code> to keep owned values in changed enums</a></h1>
<li><ahref="idioms/dtor-finally.html">Finalisation in destructors</a> and
<li><ahref="idioms/dtor-finally.html">Finalisation in destructors</a> and
<ahref="idioms/../patterns/RAII.html">RAII guards</a> can benefit from tight control over lifetimes.</li>
<ahref="idioms/../patterns/behavioural/RAII.html">RAII guards</a> can benefit from tight control over
lifetimes.</li>
<li>For conditionally filled <code>Option<&T></code>s of (mutable) references, one can
<li>For conditionally filled <code>Option<&T></code>s of (mutable) references, one can
initialize an <code>Option<T></code> directly and use its <ahref="https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref"><code>.as_ref()</code></a> method to get an
initialize an <code>Option<T></code> directly and use its <ahref="https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref"><code>.as_ref()</code></a> method to get an