This repository was archived by the owner on Dec 1, 2023. It is now read-only.
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
Implement Encodable/Decodable traits for [T; 32+] #158
Closed
Description
As I can see it is possible to simply implement this by adding needed numbers to
array! {
32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16,
15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
}
(https://github.com/rust-lang-nursery/rustc-serialize/blob/master/src/serialize.rs#L1306)
What caused the current number of implementations?
I want to serialize [u8, 64], now for this I need to create my own type and to write implementation for it, there is no way to create trait implementation for non-foreing type (rust-lang/rfcs#1023).
Metadata
Metadata
Assignees
Labels
No labels