Structures In Rust
Reading Time: 3 minutes Structures are used to creating a more complex data structure. Basically, we have three types of Structures in Rust: The classic C Structs Tuple structs, which are, basically, named tuples. Unit structs, which are field-less, are useful for generics. In general, If we take an example of length and breadth in case of the area of many of 2D shapes then we calculate the area Continue Reading