Thomas %!s(int64=3) %!d(string=hai) anos
pai
achega
95e30b7a24
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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)]