Skip to content

Commit

Permalink
WIP PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Oct 31, 2024
1 parent 275d568 commit c430df3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ impl<'src> Display for Attribute<'src> {
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub(crate) struct AttributeSet<'src>(BTreeSet<Attribute<'src>>);

impl<'src> IntoIterator for &AttributeSet<'src> {
type Item = &'src Attribute<'src>;

type IntoIter;

fn into_iter(self) -> Self::IntoIter {
todo!()
}
}

impl<'src> AttributeSet<'src> {
pub(crate) fn from_iter(iter: impl IntoIterator<Item = Attribute<'src>>) -> Self {
Self(iter.into_iter().collect())
Expand Down

0 comments on commit c430df3

Please sign in to comment.