fn read_magic_constant(&mut self) -> ImageResult<[u8; 2]> {
        let mut magic: [u8; 2] = [0, 0];
        self.read_exact(&mut magic)
            .map_err(|_| ImageError::NotEnoughData)?;
        Ok(magic)
    }
/// Reads the two magic constant bytes
Reads the two magic constant bytes
Reads the two magic constant bytes
fn read_magic_constant(&mut self) -> ImageResult<[u8; 2]> {
        let mut magic: [u8; 2] = [0, 0];
        self.read_exact(&mut magic)
            .map_err(|_| ImageError::NotEnoughData)?;
        Ok(magic)
    }
fn read_magic_constant ( & mut self ) -> ImageResult < [ u8 ; 2 ] > { let mut magic : [ u8 ; 2 ] = [ 0 , 0 ] ; self . read_exact ( & mut magic ) . map_err ( | _ | ImageError :: NotEnoughData ) ? ; Ok ( magic ) }
Reads the two magic constant bytes
Reads the two magic constant bytes
&mut self