Comments (2)
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.
from rust-hex.
Oh ok, thanks
from rust-hex.
Related Issues (20)
- Panic instead of Result on `to_slice`. HOT 4
- Support for Standard Hex dumps like Sha256 and Md5 HOT 6
- encode_to_slice with _upper and _lower variants
- A Struct Hex ?
- encode_to_string?
- Wrong character length error HOT 1
- Need a prefix version to handle hex data more easily. HOT 1
- New release to crates.io HOT 1
- Keep a changelog?
- How do I encode to a writer in 0.4? HOT 1
- 0.4.3 was a breaking change HOT 5
- Consider how this project would use const-generics before 1.0 release
- Newtype for serde HOT 1
- hex::FromHex for Vec<Vec<u8>>? HOT 5
- Implement `FromHex` for `GenericArray`
- SIMD backend
- Project status
- `hex::FromHex::Error` does not implement `Eq` HOT 1
- Error file private HOT 1
- Unmaintained? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-hex.