Skip to content

Add public constructor for public structs #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TedBrookings opened this issue Apr 10, 2025 · 0 comments
Open

Add public constructor for public structs #472

TedBrookings opened this issue Apr 10, 2025 · 0 comments

Comments

@TedBrookings
Copy link

Hi, I'm using rust_htslib to parse XA tags and wanted to use IterAlignedBlocks to find where the alt alignments pointed. Unfortunately the fields are private so it's not possible to construct that struct outside it's module. From what I can tell the easiest way to fix this is to add a public constructor. I'm thinking that this might be a good practice for many of the structs that are deeper in the project, because it saves people from having to reinvent the wheel.

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

No branches or pull requests

1 participant