Rust ツアー 目次

[未翻訳] 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.