pub fn next_interrupt(&mut self) -> Option<Interrupt> {
        if self.it_enabled.vblank && self.gpu.it_vblank() {
            Some(Interrupt::VBlank)
        } else if self.it_enabled.lcdc && self.gpu.it_lcd() {
            Some(Interrupt::Lcdc)
        } else if self.it_enabled.timer && self.timer.interrupt() {
            Some(Interrupt::Timer)
        } else {
            None
        }
    }
/// Return the highest priority active Interrupt without
/// acknowledging it. If no interrupt is pending return `None`.
Return the highest priority active Interrupt without
acknowledging it. If no interrupt is pending return `None`.
Return the highest priority active Interrupt without acknowledging it . If no interrupt is pending return ` None ` .
pub fn next_interrupt(&mut self) -> Option<Interrupt> {
        if self.it_enabled.vblank && self.gpu.it_vblank() {
            Some(Interrupt::VBlank)
        } else if self.it_enabled.lcdc && self.gpu.it_lcd() {
            Some(Interrupt::Lcdc)
        } else if self.it_enabled.timer && self.timer.interrupt() {
            Some(Interrupt::Timer)
        } else {
            None
        }
    }
pub fn next_interrupt ( & mut self ) -> Option < Interrupt > { if self . it_enabled . vblank && self . gpu . it_vblank ( ) { Some ( Interrupt :: VBlank ) } else if self . it_enabled . lcdc && self . gpu . it_lcd ( ) { Some ( Interrupt :: Lcdc ) } else if self . it_enabled . timer && self . timer . interrupt ( ) { Some ( Interrupt :: Timer ) } else { None } }
Return the highest priority active Interrupt without
acknowledging it.
Return the highest priority active Interrupt without acknowledging it .
&mut self
&mut self