fn finish_bank0(
            header: &[u8; HEADER_LEN],
            mut reader: impl Read,
            dest: &mut [u8; ROM_BANK_SIZE],
        ) -> Result<(), ParseCartridgeError> {
            dest[..HEADER_LEN].copy_from_slice(&header[..]);
            reader.read_exact(&mut dest[HEADER_LEN..])?;
            Ok(())
        }
/// Finish loading bank 0, which is partially read in order to get the cartridge header.
Finish loading bank 0, which is partially read in order to get the cartridge header.
Finish loading bank 0 which is partially read in order to get the cartridge header .
fn finish_bank0(
            header: &[u8; HEADER_LEN],
            mut reader: impl Read,
            dest: &mut [u8; ROM_BANK_SIZE],
        ) -> Result<(), ParseCartridgeError> {
            dest[..HEADER_LEN].copy_from_slice(&header[..]);
            reader.read_exact(&mut dest[HEADER_LEN..])?;
            Ok(())
        }
fn finish_bank0 ( header : & [ u8 ; HEADER_LEN ] , mut reader : impl Read , dest : & mut [ u8 ; ROM_BANK_SIZE ] , ) -> Result < ( ) , ParseCartridgeError > { dest [ .. HEADER_LEN ] . copy_from_slice ( & header [ .. ] ) ; reader . read_exact ( & mut dest [ HEADER_LEN .. ] ) ? ; Ok ( ( ) ) }
Finish loading bank 0, which is partially read in order to get the cartridge header.
Finish loading bank 0 which is partially read in order to get the cartridge header .
header
&[u8; HEADER_LEN]
reader
impl Read
dest
&mut [u8; ROM_BANK_SIZE]
header
&[u8; HEADER_LEN]
reader
impl Read
dest
&mut [u8; ROM_BANK_SIZE]