Skip to content
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
@noiseless

Description

@noiseless

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions