Skip to content

Widen BGZF trait bounds on scanners#164

Merged
nvictus merged 1 commit intoabdenlab:mainfrom
nvictus:feat-bgzf-trait-bounds
Mar 6, 2026
Merged

Widen BGZF trait bounds on scanners#164
nvictus merged 1 commit intoabdenlab:mainfrom
nvictus:feat-bgzf-trait-bounds

Conversation

@nvictus
Copy link
Copy Markdown
Member

@nvictus nvictus commented Mar 6, 2026

Replace concrete noodles::bgzf::io::Reader<R> with a generic R bounded by noodles::bgzf::io::{BufRead, Seek} in scan_query, scan_unmapped, and scan_virtual_ranges across all format scanners.

This allows callers to pass either the serial bgzf::io::Reader or the parallel bgzf::io::MultithreadedReader without any wrapper changes.

Add tests for BAM scanning with MultithreadedReader (scan + scan_query).

Replace concrete noodles::bgzf::io::Reader<R> with a generic R bounded
by noodles::bgzf::io::{BufRead, Seek} in scan_query, scan_unmapped, and
scan_virtual_ranges across all format scanners. This allows callers to
pass either the serial bgzf::io::Reader or the parallel
bgzf::io::MultithreadedReader without any wrapper changes.

Add tests for BAM scanning with MultithreadedReader (scan + scan_query).
@nvictus nvictus merged commit e9841fc into abdenlab:main Mar 6, 2026
7 checks passed
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.

1 participant