Thomas před 3 roky
rodič
revize
95e30b7a24
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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)]