This post is about connecting to MySQL from Rust.
Rust framework Rocket goes stable, starting with version 0.5 and Rust 1.45.0. No doubt, it is one of the best frameworks out there. However, it requires Rust Nightly. When I
In Rust, we can display the contents of a struct type without explicitly printing out all the fields it has.
We had an overview of the project structure. This post shows the codes of the files mentioned in the previous post.
This post shows how to find duplicate files in Rust with the same digests. The codes display list of duplicate files under the same digest. Personal Use Case I have
This post is about displaying the contents of Arrays , Tuples , HashMaps and Vectors in Rust.
In Rust, we can use the eq(), eq_ignore_ascii_case() , and == .
Before 1.47.0, there is the Rust array size limit size of 32. This is evident when we get the E0277 error that has the following message.
arrays only have std trait implementations for lengths 0..=32
When Do We
Rust has a different construct for creating arrays.
Rust Generics is a language feature for code reuse in multiple contexts using different actual types for Structs, Functions, Methods, and Enums. Moreover, they allow for concise and clean codes