[][src]Enum olympia_engine::debug::RWTarget

pub enum RWTarget {
    Address(LiteralAddress),
    ByteRegister(ByteRegister),
    WordRegister(WordRegister),
    Cycles,
    Time,
}

Types of value that can be read or written

Variants

Byte at the given memory location

ByteRegister(ByteRegister)

Byte in the given 8-bit register

WordRegister(WordRegister)

Word in the given 16-bit register

Cycles
Time

Implementations

impl RWTarget[src]

pub fn read(self, gb: &GameBoy) -> Result<u64, ReadError>[src]

Reads the value at the given target

pub fn write(self, gb: &mut GameBoy, val: u16) -> Result<u64, WriteError>[src]

Writes the value at the given target

Returns the previous value if successful

Trait Implementations

impl Clone for RWTarget[src]

impl Copy for RWTarget[src]

impl Debug for RWTarget[src]

impl Display for RWTarget[src]

impl Eq for RWTarget[src]

impl From<ByteRegister> for RWTarget[src]

impl From<LiteralAddress> for RWTarget[src]

impl From<WordRegister> for RWTarget[src]

impl FromStr for RWTarget[src]

type Err = TargetParseError

The associated error which can be returned from parsing.

impl PartialEq<RWTarget> for RWTarget[src]

impl StructuralEq for RWTarget[src]

impl StructuralPartialEq for RWTarget[src]

Auto Trait Implementations

impl Send for RWTarget

impl Sync for RWTarget

impl Unpin for RWTarget

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> ToString for T where
    T: Display + ?Sized
[src]

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.