Y
Hacker News
new
|
ask
|
show
|
jobs
by
Kinrany
1525 days ago
The danger with DerefMut is that one may accidentally allow violating the type's invariant. Same with Deref when interior mutability is present.