File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
crates/apollo-compiler/src Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -596,6 +596,16 @@ impl std::ops::DerefMut for DirectiveList {
596
596
}
597
597
}
598
598
599
+ impl IntoIterator for DirectiveList {
600
+ type Item = Node < Directive > ;
601
+
602
+ type IntoIter = std:: vec:: IntoIter < Node < Directive > > ;
603
+
604
+ fn into_iter ( self ) -> Self :: IntoIter {
605
+ self . 0 . into_iter ( )
606
+ }
607
+ }
608
+
599
609
impl < ' a > IntoIterator for & ' a DirectiveList {
600
610
type Item = & ' a Node < Directive > ;
601
611
Original file line number Diff line number Diff line change @@ -867,6 +867,16 @@ impl std::ops::DerefMut for DirectiveList {
867
867
}
868
868
}
869
869
870
+ impl IntoIterator for DirectiveList {
871
+ type Item = Component < Directive > ;
872
+
873
+ type IntoIter = std:: vec:: IntoIter < Component < Directive > > ;
874
+
875
+ fn into_iter ( self ) -> Self :: IntoIter {
876
+ self . 0 . into_iter ( )
877
+ }
878
+ }
879
+
870
880
impl < ' a > IntoIterator for & ' a DirectiveList {
871
881
type Item = & ' a Component < Directive > ;
872
882
You can’t perform that action at this time.
0 commit comments