Thomas 3 vuotta sitten
vanhempi
commit
95e30b7a24
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      src/lib.rs

+ 6 - 0
src/lib.rs

@@ -44,6 +44,12 @@ impl BamSequence {
         )
     }
 }
+impl Iterator for BamSequence {
+    type Item = BamNucleotid;
+    fn next(&mut self) -> Option<Self::Item> {
+        self.0.iter().next().copied()
+    }
+}
 
 /// Stores possible types of tags values.
 #[derive(Debug, Clone)]