- Rust Standard Library Cookbook
- Jan Nils Ferner Daniel Durante
- 57字
- 2021-08-27 19:45:00
Learning the Basics
In this chapter, we will cover the following recipes:
- Concatenating strings
- Using the format! macro
- Providing a default implementation
- Using the constructor pattern
- Using the builder pattern
- Parallelism through simple threads
- Generating random numbers
- Querying with regexes
- Accessing the command line
- Interacting with environment variables
- Reading from stdin
- Accepting a variable number of arguments