3 ms·
What do transients have to do with ownership? They are simply a way to gain new performance characteristics from an existing data structure.
by casion 7y ago
What do transients have to do with ownership? They are simply a way to gain new performance characteristics from an existing data structure.
- stuhood 7y agoThe thing that makes it safe to use mutation in the context of a transient is that you can know with certainty that you have exclusive access to the value (because no other viewer has observed it yet). This is also what borrow checking can guarantee: except in significantly more positions in the code, and at compile time rather than runtime.