pub struct Rom<T: Deref<Target = [u8]>> { /* private fields */ }Implementations§
Source§impl<T: Deref<Target = [u8]>> Rom<T>
impl<T: Deref<Target = [u8]>> Rom<T>
Sourcepub fn cartridge_type(&self) -> CartridgeType
pub fn cartridge_type(&self) -> CartridgeType
Shortcut to retrieve the cartridge type from the header
Sourcepub fn verify_header_checksum(&self) -> bool
pub fn verify_header_checksum(&self) -> bool
Verify the checksum from the header
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Rom<T>where
T: Freeze,
impl<T> RefUnwindSafe for Rom<T>where
T: RefUnwindSafe,
impl<T> Send for Rom<T>where
T: Send,
impl<T> Sync for Rom<T>where
T: Sync,
impl<T> Unpin for Rom<T>where
T: Unpin,
impl<T> UnsafeUnpin for Rom<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Rom<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more