[][src]Struct olympia_core::address::AddressOffset

pub struct AddressOffset(pub i8);

Represents an address that is offset from the program counter

Methods

impl AddressOffset[src]

pub fn resolve(self, base: LiteralAddress) -> OffsetResolveResult[src]

Returns new address, half carry and carry flags

base is the address to offset from, which in the gameboy instruction set is based on the PC or SP register, depending on the instruction

Trait Implementations

impl Clone for AddressOffset[src]

impl Copy for AddressOffset[src]

impl Debug for AddressOffset[src]

impl Eq for AddressOffset[src]

impl From<u8> for AddressOffset[src]

impl PartialEq<AddressOffset> for AddressOffset[src]

impl StructuralEq for AddressOffset[src]

impl StructuralPartialEq for AddressOffset[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.