3 ms·
The danger with DerefMut is that one may accidentally allow violating the type's invariant. Same with Deref when interior mutability is present.
by Kinrany 5y ago
The danger with DerefMut is that one may accidentally allow violating the type's invariant. Same with Deref when interior mutability is present.