[−][src]Enum olympia_engine::debug::RWTarget
Types of value that can be read or written
Variants
Address(LiteralAddress)
Byte at the given memory location
ByteRegister(ByteRegister)
Byte in the given 8-bit register
WordRegister(WordRegister)
Word in the given 16-bit register
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]
fn clone(&self) -> RWTarget
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(original: ByteRegister) -> RWTarget
[src]
impl From<LiteralAddress> for RWTarget
[src]
fn from(original: LiteralAddress) -> RWTarget
[src]
impl From<WordRegister> for RWTarget
[src]
fn from(original: WordRegister) -> RWTarget
[src]
impl FromStr for RWTarget
[src]
type Err = TargetParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<RWTarget, TargetParseError>
[src]
impl PartialEq<RWTarget> for RWTarget
[src]
impl StructuralEq for RWTarget
[src]
impl StructuralPartialEq for RWTarget
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,