Module blog::daily_rfcs::visibility::_0001_private_fields
source · [−]Expand description
all struct fields are private by default
Note
- Private fields cannot be bound in patterns (both in irrefutable and refutable contexts, i.e.
let
andmatch
statements). - Private fields cannot be specified outside of the defining module when constructing a tuple struct.