feat: added cleanscript
This commit is contained in:
29
ch20/ch20-00-advanced-features.html
Normal file
29
ch20/ch20-00-advanced-features.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Advanced Features</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="advanced-features"><a class="header" href="#advanced-features">Advanced Features</a></h1>
|
||||
<p>By now, you’ve learned the most commonly used parts of the Rust programming
|
||||
language. Before we do one more project, in Chapter 21, we’ll look at a few
|
||||
aspects of the language you might run into every once in a while but may not
|
||||
use every day. You can use this chapter as a reference for when you encounter
|
||||
any unknowns. The features covered here are useful in very specific situations.
|
||||
Although you might not reach for them often, we want to make sure you have a
|
||||
grasp of all the features Rust has to offer.</p>
|
||||
<p>In this chapter, we’ll cover:</p>
|
||||
<ul>
|
||||
<li>Unsafe Rust: How to opt out of some of Rust’s guarantees and take
|
||||
responsibility for manually upholding those guarantees</li>
|
||||
<li>Advanced traits: Associated types, default type parameters, fully qualified
|
||||
syntax, supertraits, and the newtype pattern in relation to traits</li>
|
||||
<li>Advanced types: More about the newtype pattern, type aliases, the never type,
|
||||
and dynamically sized types</li>
|
||||
<li>Advanced functions and closures: Function pointers and returning closures</li>
|
||||
<li>Macros: Ways to define code that defines more code at compile time</li>
|
||||
</ul>
|
||||
<p>It’s a panoply of Rust features with something for everyone! Let’s dive in!</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user