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:
parent
27648a97eb
commit
a452435052
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user