Like C, Rust implements structs, however, the syntax is slightly different. You use the struct keyword, followed by the name of the struct, which I called Tester. The fields of the class must have names, followed by their defined type, with a comma seperating each field.
The left showcases how to create struct objects. There are two main ways, creating a new struct, and defining their fields directly, or by creating a build_struct method. Both ways are showcased to the left.
Integers and floats can use all operators, where the type of the resulting variable is implied by the types of the initial variables. For example, if I divide two integers, the return type will also be an integer, but if I divide two floats, the return type will be a float. Without implementing additional logic, you can not use any operators on floats and integers.
Chars can be added together, but can not use any other standard operators.
We can concatenate strings togethers by using a reference to one of the two strings, but we can not subtract strings from one another(or divide or multiply). However, we can check for equality between strings using ==.
Likewise, bools can not use any standard operator, except for checking for equality between two bools.