self.components
}
- /// The pixel data consists of [`height()`] scanlines of [`width()`] pixels,
- /// with each pixel consisting of [`components()`] interleaved 8-bit components; the first
+ /// The pixel data consists of [`Self::height()`] scanlines of [`Self::width()`] pixels,
+ /// with each pixel consisting of [`Self::components()`] interleaved 8-bit components; the first
/// pixel pointed to is top-left-most in the image. There is no padding between
/// image scanlines or between pixels, regardless of format.
///
pub fn visit<V: Visitor>(&mut self, visitor: &mut V) -> Result<(), Error> {
fn parse_line<V: Visitor>(line: &[u8], visitor: &mut V) -> Result<(), Error> {
- debug_assert!(line.len() > 0);
+ debug_assert!(!line.is_empty());
let mut i = 0;