User Defined Types
All user defined types are immutable by default, you can add the mut
keyword to make it mutable.
The only type that is part of the language is the struct
, all other types are 'syntax sugar' for them.
All user defined types are immutable by default, you can add the mut
keyword to make it mutable.
The only type that is part of the language is the struct
, all other types are 'syntax sugar' for them.