From the course: Rust for C# Developers

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Data querying

Data querying

- When I speak to colleagues who need to work with another language than C Sharp, either temporarily or they're making a bigger shift in their career, what they always tell me that they miss with C Sharp is Linq. The language integrated query functionality. It's the powerful syntax to easily filter lists and collections on one or multiple fields, select down to a specific field on the type, run multiple functions on the results, and do it all in a functional syntax that is easy to get an overview of. Just because Rust is a programming language close to the metal, which is by many considered a potential replacement to CNC++ , doesn't mean that it doesn't have similar powerful features to work on collections, keep your productive and still keep the code very readable. Rust has the concept of iterators, which lends similar syntax to Linq. We start by using a struct name person, which will contain the name, age and a bullion…

Contents