fn write_ram(cart: &mut Cartridge, addr: u32, val: u8) {
    if let Some(b) = cart.ram_byte_absolute_mut(addr) {
        *b = val;
    }
}
/// Default implementation of write_ram, suitable for most cartridges
Default implementation of write_ram, suitable for most cartridges
Default implementation of write_ram suitable for most cartridges
fn write_ram(cart: &mut Cartridge, addr: u32, val: u8) {
    if let Some(b) = cart.ram_byte_absolute_mut(addr) {
        *b = val;
    }
}
fn write_ram ( cart : & mut Cartridge , addr : u32 , val : u8 ) { if let Some ( b ) = cart . ram_byte_absolute_mut ( addr ) { * b = val ; } }
Default implementation of write_ram, suitable for most cartridges
Default implementation of write_ram suitable for most cartridges
cart
&mut Cartridge
addr
u32
val
u8
cart
&mut Cartridge
addr
u32
val
u8