Thomas il y a 3 ans
Parent
commit
95e30b7a24
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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)]