wide
wide copied to clipboard
make ::new usable in a const context to avoid need of using const union hack
Making new const simplified a bunch of code and allows users of this library to define their own constants without having to do anything hacky.
It does mean that it uses transmute directly, but we know the source and destination types, and alignment isn't an issue since the parameters are by value.