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
Since it's already possible to derive one for Binary, it'd make sense to allow for println("{:x}") and the other integer printing formatters. A workaround is to manually convert to the sized uint before printing but that's a little tedious.
The text was updated successfully, but these errors were encountered:
Feel free to implement.
You could even just extend it for you own use with a custom derive macro ending its name in Bits.
For structs, the LowerHex impl should just be fmt::LowerHex::fmt(&self.value.value, f).
Actually, wouldn't a "normal" byte based derive LowerHex work?
Since it's already possible to derive one for Binary, it'd make sense to allow for
println("{:x}")
and the other integer printing formatters. A workaround is to manually convert to the sized uint before printing but that's a little tedious.The text was updated successfully, but these errors were encountered: