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

generalize io for Arc #1

Closed
wants to merge 1 commit into from
Closed

generalize io for Arc #1

wants to merge 1 commit into from

Conversation

CAD97
Copy link
Owner

@CAD97 CAD97 commented Sep 21, 2024

There's no fundamental reason to limit the io trait implementations on Arc to only File; they can equally be applied to any Arc<T> where &T: Trait. Arc isn't a fundamental type, so it's impossible for downstream crates to implement Read for Arc<LocalType>, thus this blanket impl is a non-breaking one (if I remembered the API evolution rules correctly).

ATTN: this PR makes insta-stable API changes.

Now that the impl is generalized it might be more proper to live in a different file, but I did this from the web editor.

@CAD97
Copy link
Owner Author

CAD97 commented Sep 21, 2024

Oops wrong target

@CAD97 CAD97 closed this Sep 21, 2024
@CAD97 CAD97 deleted the arcio branch September 22, 2024 04:18
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