Skip to content

Commit

Permalink
cram/record/sequence/iter: Implement Iterator::size_hint
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Feb 26, 2025
1 parent 0428798 commit cff761c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions noodles-cram/src/record/sequence/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,8 @@ impl<'r: 'c, 'c: 'r> Iterator for Iter<'r, 'c> {
}
}
}

fn size_hint(&self) -> (usize, Option<usize>) {
(self.read_length, Some(self.read_length))
}
}

0 comments on commit cff761c

Please sign in to comment.