(&mut self, e: E)
| 179 | } |
| 180 | |
| 181 | fn next(&mut self, e: E) -> Result<Option<Note<'data>>> { |
| 182 | match self { |
| 183 | NoteIterator::B32(iter) => Ok(iter.next().map_err(object_error)?.map(|note| Note { |
| 184 | n_type: note.n_type(e), |
| 185 | name: note.name(), |
| 186 | desc: note.desc(), |
| 187 | })), |
| 188 | NoteIterator::B64(iter) => Ok(iter.next().map_err(object_error)?.map(|note| Note { |
| 189 | n_type: note.n_type(e), |
| 190 | name: note.name(), |
| 191 | desc: note.desc(), |
| 192 | })), |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | // ELF note format: |
no test coverage detected