Skip to content

Add encode_iter variant of encode to enable avoiding allocations - #62

Merged
adamreichold merged 1 commit into
georust:mainfrom
adamreichold:encode-iter
Jun 14, 2026
Merged

Add encode_iter variant of encode to enable avoiding allocations#62
adamreichold merged 1 commit into
georust:mainfrom
adamreichold:encode-iter

Conversation

@adamreichold

Copy link
Copy Markdown
Member
  • I agree to follow the project's code of conduct.
  • I added an entry to the project's change log file if knowledge of this change could be valuable to users.
    • Usually called CHANGES.md or CHANGELOG.md
    • Prefix changelog entries for breaking changes with "BREAKING: "

This allows callers to avoid allocating a String if they can process the digits on the fly or want to collect them into another container like CompactString or even ArrayVec if the length is statically known.

This allows callers to avoid allocating a `String` if they can
process the digits on the fly or want to collect them into another
container like `CompactString` or even `ArrayVec` if the length
is statically known.
@adamreichold
adamreichold added this pull request to the merge queue Jun 14, 2026
Merged via the queue into georust:main with commit 50a4b2a Jun 14, 2026
2 checks passed
@adamreichold

Copy link
Copy Markdown
Member Author

@sunng87 I would be really grateful if you could make a point release publishing this, so we can avoid a Git dependency downstream. 🙇🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants