In this podcast, Wes and Scott continue their discussion on Rust for JavaScript developers. They cover topics such as variables in Rust, the type system, signed and unsigned integers, slicing strings, enums, structs, Vec, HashMap and HashSet. They also explain how to convert signed to unsigned numbers and dive into the concept of structs in Rust. The hosts share their siiick picks and shameless plugs at the end.
Read more
AI Summary
AI Chapters
Episode notes
auto_awesome
Podcast summary created with Snipd AI
Quick takeaways
Variables in Rust can be either immutable or mutable, and constants must be defined at compile time.
Rust has both signed and unsigned integers, with different use cases and implications.
Deep dives
A magnetic phone mount holder for the gym
The or zero magnetic phone mount holder is a versatile phone mount that can be placed on any magnetic surface, making it perfect for use at the gym. It allows you to easily attach and detach your phone, and it has a swivel feature that allows you to adjust the angle. No need to worry about changing your phone case or the MagSafe charging feature. This mount provides a convenient and flexible solution for using your phone at the gym.
A thermosil patio shield for mosquito protection
The thermosil patio shield is an effective mosquito repellent device that creates a 15-foot mosquito protection zone. It uses a fuel cell and a repellent mat to provide up to 12 hours of mosquito-free time. This device is portable, easy to use, and provides a great alternative to bug sprays or citronella candles. It's perfect for outdoor activities and allows you to enjoy your time outside without the annoyance of mosquitoes.
In this episode of Syntax, Wes and Scott jump into part 2 of their look at Rust for JavaScript developers, including variables in Rust, type systems in Rust, signed and unsigned integers, and more.
struct User { username: String, email: String, sign_in_count: u64, active: bool, } // You can create an instance of a struct like this: let user1 = User { email: String::from("someone@example.com"), username: String::from("someusername123"), active: true, sign_in_count: 1, }; impl User { fn login(&mut self) { self.login_count += 1; } }