Closed cchudant closed 5 years ago
Hi there! :)
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.
Oh ok, thanks
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