Learn about the common mistakes to avoid when writing Rust code, such as not being able to toggle off the borrow checker, special behavior of '_' variable, and the impact of using '.unwrap()'.

6m read timeFrom infoworld.com
Post cover image
Table of contents
You can't 'toggle off' the borrow checkerDon't use '_' for variables you want to bindClosures don't have the same lifetime rules as functionsDestructors don't always run when a borrow expiresBeware of unsafe things and unbounded lifetimes.unwrap() surrenders error-handling control
1 Comment

Sort: