Learning Rust from the official Rust book
In Chapter three, created the following projects
At the end of chapter 6
- Finished the book
- What does a panic! look like from a compiled app
$ cargo new add-one
Created library `add-one` project
For creating a library, need the lib flag
In Chapter 10 in the “Implementing a Trait on a Type” section, we mentioned the orphan rule that states we’re allowed to implement a trait on a type as long as either the trait or the type are local to our crate.
we're -> were
The following awesome people have helped me improve these examples and make the code better!
- @fschutt
- @aeveris