logo
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 and match statements).
  • Private fields cannot be specified outside of the defining module when constructing a tuple struct.

RFC: 0001-private-fields