struct

  1. Create simple struct
  2. Change attributes of a mutable struct
  3. Implement a method for a struct
  4. Struct method to modify fields
  5. Struct inheritance
  6. Struct composition: Circle
  7. Struct composition: Line
  8. Struct and type alias - Polygon
  9. Struct with vector of structs - Polygon
  10. Struct duplicate
  11. Printing struct fails
  12. Print struct
  13. Debug struct
  14. Derive Debug for struct
  15. Print struct (Point)
  16. Debug struct (Point)
  17. Struct with vector and optional value
  18. Printing and debug-printing simple struct
  19. Use a tuple as a struct to represent color
  20. Add method to tuple-based struct
  21. Struct with method
  22. Structs and circural references
  23. Multiple referene to a struct
  24. new method with default values for struct
  25. The new method has no special feature
  26. Default values
  27. Default for composite struct
  28. Compare structs for Equality
  29. Compare structs for Equality - manual implementation
  30. Compare structs for partial equality - PartialEq
  31. Compare structs for ordering (sorting) - Ord
  32. Compare structs for partial ordering (sorting) - PartialOrd
  33. Manually implement ordering