We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22fdebd commit 7f46afeCopy full SHA for 7f46afe
src/language/custom-types/members.md
@@ -162,6 +162,11 @@ impl Rectangle {
162
}
163
```
164
165
+> Note: While in C# it is idiomatic to expose a property for every field and keep
166
+> the fields private, in Rust it is more common to expose the fields directly when possible,
167
+> since there is no syntax sugar for accessor methods and they also have complexities
168
+> with the borrow checker.
169
+
170
## Extension Methods
171
172
Extension methods in C# enable the developer to attach new statically-bound
0 commit comments