Hello,
From the documentation from_bits_unchecked() looks like what I need:
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
However the method is unsafe, so I'd like to know under which conditions I can safely use it, and what are the risks if I don't use it correctly.