Files
docs-rust/ch20/ch20-00-advanced-features.html
2026-06-22 21:27:36 +05:30

30 lines
1.4 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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, youve learned the most commonly used parts of the Rust programming
language. Before we do one more project, in Chapter 21, well 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, well cover:</p>
<ul>
<li>Unsafe Rust: How to opt out of some of Rusts 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>Its a panoply of Rust features with something for everyone! Lets dive in!</p>
</body>
</html>