Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Request expanded documentation on implementing `trait Header`

Open
#144 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
rust
Domain
documentation

Research direction

Start with the linked impl Header for Dnt example in the headers documentation and trace the documented decode and encode APIs. Clarify iterator contents, unconsumed values, multiple emitted values, and whether encoding and decoding are symmetrical. Done means the documentation answers each of the listed questions.

Written by the indexing model from the issue text.

Description

The impl Header for Dnt example is a good start, but it doesn't explain the actual semantics of the iterator-based design.

Example questions which would be nice to have answered in the documentation:

  • Under what circumstances will the iterator provided to fn decode contain more than one value?
  • If a decode implementation does not consume the provided iterator entirely, what happens to the remaining values?
    • Are they re-used to produce a new instance?
    • Are they just discarded?
  • Under what circumstances is it reasonable to emit more than one value in fn encode?
  • Are the encode and decode circumstances symmetrical?
Dominant language
Rust
Stars
200
Forks
107
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperium/headers

All issues in hyperium/headers

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.