Thomas 3 年之前
父節點
當前提交
95e30b7a24
共有 1 個文件被更改,包括 6 次插入0 次删除
  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)]