Skip to content
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

feat: improve crate's API #2

Merged
merged 7 commits into from
Oct 7, 2023
Merged

feat: improve crate's API #2

merged 7 commits into from
Oct 7, 2023

Conversation

nfejzic
Copy link
Owner

@nfejzic nfejzic commented Oct 4, 2023

Add an extension trait to extend Iterator implementations, so that Band and Tape can be created by calling a corresponding function on any type that implements Iterator trait.

Also, remove redundant generic type parameters on Band and Tape.

Use extension trait called `Enroll` with functions to convert iterator
to a `Band` or `Tape`. Implement this extension trait for all types that
implement the `Iterator` trait.
@nfejzic nfejzic marked this pull request as ready for review October 7, 2023 14:57
@nfejzic nfejzic merged commit 38302d0 into main Oct 7, 2023
2 checks passed
@nfejzic nfejzic deleted the improve-api branch October 7, 2023 15:15
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.

None yet

1 participant