(&self)
| 196 | |
| 197 | #[inline] |
| 198 | pub fn rgba_rows_iter(&self) -> Result<DynamicRowsIter<'_, 'pixels, 'rows>, Error> { |
| 199 | // This happens when histogram image is recycled |
| 200 | if let PixelsSource::Pixels { rows, .. } = &self.pixels { |
| 201 | if rows.as_slice().is_empty() { |
| 202 | return Err(Error::Unsupported); |
| 203 | } |
| 204 | } |
| 205 | Ok(DynamicRowsIter { px: self, temp_f_row: None }) |
| 206 | } |
| 207 | |
| 208 | #[inline] |
| 209 | pub fn all_rows_f(&mut self) -> Result<&[f_pixel], Error> { |
no test coverage detected