3 ms·
While technically true, the documentation makes it very clear that Deref should only be implemented for smart pointers and never fail. So no allocations in prac
by dthul 6y ago
While technically true, the documentation makes it very clear that Deref should only be implemented for smart pointers and never fail. So no allocations in practice.
- pjmlp 6y agoAh problem solved then, we just need to document very clear that C code should not corrupt memory, how did I never thought of it.