EN | DE

Stage 8.5: Abstraction With Selective Exposure

Rust can hide the inner workings of objects.

By default fields and methods are accessible only to the module they belong to.

The pub keyword exposes struct fields and methods outside of the module.

Further information:

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