Search Results


101

Bitfields Demystified

Bitfields are mysterious when it comes to Rust language and people don't know the right way to approach them. The 101 series of this journal is to present things that I find everyone should know about that particular language. So, let's start with our favorite Rust ❤️.

Sizes 101

Sizes are an important topic to discuss, because at the end of the day while creating some arbitrary data structure you are going to be in trouble if dealing with FFIs or foreign interfaces. What I have done here is to preassign few data types that I use frequently.