Closed adeschamps closed 6 years ago
Here's an option to get rid of the transmutes, based on the alternatives section of the docs. We cast a reference to a pointer, then cast to a different pointer type, and then use unsafe to cast that pointer back to a reference.
transmutes
unsafe
Here's an option to get rid of the
transmutes
, based on the alternatives section of the docs. We cast a reference to a pointer, then cast to a different pointer type, and then useunsafe
to cast that pointer back to a reference.