There are two places in the make_units! macro where mem::transmute is used; for implementing Index and IndexMut. Both require going from &V to &$System<V, U> for some U.
I think that the current use should be safe, but would like external validation. It would also be nice to replace it with something less dangerous.
There are two places in the
make_units!
macro wheremem::transmute
is used; for implementingIndex
andIndexMut
. Both require going from&V
to&$System<V, U>
for someU
.I think that the current use should be safe, but would like external validation. It would also be nice to replace it with something less dangerous.