Structures
Structures are copied when used as an initial value for constant or variable, when assigned to a different variable, when passed as an argument to a function, and when returned from a function.
Accessing a field or calling a function of a structure does not copy it.
PreviousResource DestructorsNextAccessing Fields and Functions of Composite Types Using Optional Chaining
Last updated