Repository navigation
Conversation
Keep existing public iterator aliases and Debug trait bounds. Leave range iterator formatting unchanged for compatibility. Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>
Author
|
I understand from your reply on #119 that review time is limited. Is this Debug-output change still in scope for your next review round, and is there anything you need changed first? Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #45. This is a partial fix: range-iterator formatting remains unchanged to preserve its existing public
Debugtrait bounds.The public collections currently print implementation details such as tree nodes, hashes and iterator stacks. This changes all eight collection types to list/map/set-style contents, with named wrappers for
QueueandStack. Full iterators show their remaining contents without consuming the iterator. Existing publicMap/Chainiterator aliases are preserved, so the standard-library adapter wrappers are still visible.The red-black full iterator formatter uses its remaining length and forward cursor, without adding an
Ordrequirement toDebug. Tests cover mixed front/back consumption, exhaustion, empty/singleton collections and generic-bound compatibility.RangeIterPtrretains its structural derivedDebug; formatting its logical contents without narrowing its previous generic bounds needs a separate design.Validation on this changeset:
cargo fmt --all -- --checkandgit diff --checkcargo test --lib test_debug --locked: 10 passedcargo test --lib --locked: 268 passedcargo clippy --all-targets --all-features -- -D warningscargo package --allow-dirty, including package verificationcargo +1.85.0 check --lib --lockedThe regression tests fail on the base. Rust 1.85 library tests are blocked by the existing
criterion 0.8.2dev-dependency requiring Rust 1.86, with the same result on the clean base and the patched tree using the same lockfile. No dependency or manifest changes are included. The all-features runtime suite was not rerun after the final iterator revision.