-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement IntoIterator for &Attributes and Extend for Attributes (#386)
The original implementation of Attributes had an `iter` method but it did not implement `FromIterator` for `&Attributes`, making it so you couldn't use `for (key, value) in &attributes` and had to use `for (key, value) in attributes.iter()`. This changes that. Additionally, `Extend` is a nice quality of life trait for containers so it's implemented here.
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters