mem::safe_transmute::<Y>(x)
or something similar ? I'd love it if truncating as
could get a warning in some distant bright future.
4 Likes
mem::safe_transmute::<Y>(x)
or something similar ? I'd love it if truncating as
could get a warning in some distant bright future.