[][src]Enum olympia_engine::gameboy::MemoryError

pub enum MemoryError {
    InvalidRomAddress(u16),
    InvalidRamAddress(u16),
    UnmappedAddress(u16),
}

Represents a failure to read from memory.

Variants

InvalidRomAddress(u16)

The address maps to the Cartridge ROM area, but the currently loaded cartridge does not have ROM at this address. This can happen for MBC1/SROM cartridges that have less than 8KB of storage

InvalidRamAddress(u16)

The address maps to the Cartridge RAM area, but the currently loaded cartridge does not have RAM at this address. This can happen for cartridges that have < 2KB of RAM, including no RAM

UnmappedAddress(u16)

The address maps to an area that is unmapped for the current gameboy model. This can include areas that are unmapped in all models, or registers that only exist on Game Boy Color

Trait Implementations

impl Clone for MemoryError[src]

impl Debug for MemoryError[src]

impl Eq for MemoryError[src]

impl From<MemoryError> for StepError[src]

impl PartialEq<MemoryError> for MemoryError[src]

impl StructuralEq for MemoryError[src]

impl StructuralPartialEq for MemoryError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.