We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0bc758 commit 4c6f7f9Copy full SHA for 4c6f7f9
multiboot2/src/elf_sections.rs
@@ -132,6 +132,19 @@ impl<'a> Iterator for ElfSectionIter<'a> {
132
}
133
None
134
135
+
136
+ fn size_hint(&self) -> (usize, Option<usize>) {
137
+ (
138
+ self.remaining_sections as usize,
139
+ Some(self.remaining_sections as usize),
140
+ )
141
+ }
142
+}
143
144
+impl ExactSizeIterator for ElfSectionIter<'_> {
145
+ fn len(&self) -> usize {
146
+ self.remaining_sections as usize
147
148
149
150
impl Debug for ElfSectionIter<'_> {
0 commit comments