Chapter Five introduces Rust’s structs, which are similar to Scala’s case classes. Most of the differences come down to Rust’s borrow checking, mutability, and use of traits instead of inheritance from Java.
Chapter Five introduces Rust’s structs, which are similar to Scala’s case classes. Most of the differences come down to Rust’s borrow checking, mutability, and use of traits instead of inheritance from Java.