We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e664f4 commit afb6fadCopy full SHA for afb6fad
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<'a> ExactSizeIterator for ElfSectionIter<'a> {
145
+ fn len(&self) -> usize {
146
+ self.remaining_sections as usize
147
148
149
150
impl<'a> Debug for ElfSectionIter<'a> {
0 commit comments