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
Unfortunately, what you suggest is not possible. We can't add an impl UpperHex for &[u8] in this crate due to so called orphan rules. I.e.: either the trait or the type of an impl has to be defined in the same crate as the impl itself.
To work around this, one could have a newtype which wraps a slice. This is what is suggested in #8. So I think this issue can be closed in favor of #8.
https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html
https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html
it would be great to directly display u8 slices to the console like this:
because we currently have to do this:
which isn't great
The text was updated successfully, but these errors were encountered: