EN | DE

Stage 10.12: struct Visibility

Just like functions, structures can declare what they want exposed outside of their module using pub.

This is a similar defensive approach as with immutable variables by default.

Tags: #structs

Further information:

Share on Facebook Share on Twitter Share on Reddit Save on Pocket Share on LinkedIn Share via email