gh-pages
simonsan 2 years ago
parent 42d55805e5
commit 4a8ab9ac04

@ -142,7 +142,7 @@
<p><a href="https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization">RAII</a> stands for &quot;Resource Acquisition is Initialisation&quot; which is a
terrible name. The essence of the pattern is that resource initialisation is done
in the constructor of an object and finalisation in the destructor. This pattern
is extended in Rust by using an RAII object as a guard of some resource and relying
is extended in Rust by using a RAII object as a guard of some resource and relying
on the type system to ensure that access is always mediated by the guard object.</p>
<h2 id="example"><a class="header" href="#example">Example</a></h2>
<p>Mutex guards are the classic example of this pattern from the std library (this

@ -1940,7 +1940,7 @@ builtin traits on newtypes.</li>
<p><a href="https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization">RAII</a> stands for &quot;Resource Acquisition is Initialisation&quot; which is a
terrible name. The essence of the pattern is that resource initialisation is done
in the constructor of an object and finalisation in the destructor. This pattern
is extended in Rust by using an RAII object as a guard of some resource and relying
is extended in Rust by using a RAII object as a guard of some resource and relying
on the type system to ensure that access is always mediated by the guard object.</p>
<h2 id="example-13"><a class="header" href="#example-13">Example</a></h2>
<p>Mutex guards are the classic example of this pattern from the std library (this

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save