fn ram_bank(&self) -> Option<&RamBank> {
        if self.ram_banks.is_empty() || !self.ram_enable {
            None
        } else if self.advanced_banking_mode {
            let bank = self.bank_set as usize % self.ram_banks.len();
            Some(&self.ram_banks[bank])
        } else {
            Some(&self.ram_banks[0])
        }
    }
/// Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank if the rom has ram and ram is enabled .
fn ram_bank(&self) -> Option<&RamBank> {
        if self.ram_banks.is_empty() || !self.ram_enable {
            None
        } else if self.advanced_banking_mode {
            let bank = self.bank_set as usize % self.ram_banks.len();
            Some(&self.ram_banks[bank])
        } else {
            Some(&self.ram_banks[0])
        }
    }
fn ram_bank ( & self ) -> Option < & RamBank > { if self . ram_banks . is_empty ( ) || ! self . ram_enable { None } else if self . advanced_banking_mode { let bank = self . bank_set as usize % self . ram_banks . len ( ) ; Some ( & self . ram_banks [ bank ] ) } else { Some ( & self . ram_banks [ 0 ] ) } }
Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank if the rom has ram and ram is enabled .
&self
&self