Chapter 22. Algorithms of the Standard Library
Rust's standard library provides a few fundamental data types that cover the basic needs of many projects and, typically, there is no need to implement your own algorithms if the appropriate data structure is available. If, for some reason, the data type is not perfectly suited to the task, the standard library has you covered as well. In this quick round-up, you can look forward to learning about the following:
- The
slice
primitive type - The
Iterator
trait binary_search()
sort()
, stable, and unstable