Could someone please explain to me the working of HashMaps in rust and especially in white spaces and where to use them. also the Usage of Structs and Enums in rust
There are great free learning resources for Rust beginners on the web. I highly recommend reading the official Rust book: The Rust Programming Language - The Rust Programming Language. It does cover (discriminated) composite data types (structs and enums—chapters 5 and 6) and has a chapter on hash maps as well: Storing Keys with Associated Values in Hash Maps - The Rust Programming Language.
2 Likes