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: