You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my last pull request I blindly stated that conversion of mutable slices could not be implemented because I thought it would violate mutability rules.
As it turns out, the borrow checker is really smart, and it is indeed possible to reinterpret mutable slices without incorrect behaviour. I need this functionality for efficient binary deserialization of f16 numbers.
I have implemented from_bits_mut and to_bits_mut in f16::slice in my fork. I'd like to send a pull request, if you approve.
The text was updated successfully, but these errors were encountered:
In my last pull request I blindly stated that conversion of mutable slices could not be implemented because I thought it would violate mutability rules.
As it turns out, the borrow checker is really smart, and it is indeed possible to reinterpret mutable slices without incorrect behaviour. I need this functionality for efficient binary deserialization of
f16
numbers.I have implemented
from_bits_mut
andto_bits_mut
inf16::slice
in my fork. I'd like to send a pull request, if you approve.The text was updated successfully, but these errors were encountered: