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

Change the Object::attributes method to return an iterator #138

Merged
merged 1 commit into from Nov 8, 2022

Conversation

mitsuhiko
Copy link
Owner

This changes the method to return an iterator. This iterator here is over &str which I wonder if that is generic enough. It at least feels like it should be somewhat easy to fulfill but obviously there might be corner cases where this is non trivial. However changing the item to a Cow<'_, str> is not quite as easy without making some more changes throughout the system.

Fixes #137

@mitsuhiko mitsuhiko merged commit eddd7c6 into main Nov 8, 2022
@mitsuhiko mitsuhiko deleted the feature/attribute-iterator branch November 8, 2022 16:29
@mitsuhiko mitsuhiko restored the feature/attribute-iterator branch November 8, 2022 16:34
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.

Object::attributes() appears to be impossible to implement in most cases
1 participant