1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 02:09:44 +03:00

WIP PR comments

This commit is contained in:
Greg Shuflin 2024-10-30 21:10:54 -07:00
parent 27648a97eb
commit a452435052

View File

@ -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())