[][src]Trait cpclib_z80emu::HasValue

pub trait HasValue {
    type ValueType: Integer + One + WrappingAdd + WrappingSub;
    pub fn value(&self) -> Self::ValueType;
pub fn set(&mut self, value: Self::ValueType); pub fn get(&self) -> Self::ValueType { ... }
pub fn add(&mut self, value: Self::ValueType) { ... }
pub fn sub(&mut self, value: Self::ValueType) { ... }
pub fn inc(&mut self) { ... }
pub fn dec(&mut self) { ... } }

Common trait for Register 8 and 6 bits

Associated Types

type ValueType: Integer + One + WrappingAdd + WrappingSub[src]

The type that encodes the value of interest

Loading content...

Required methods

pub fn value(&self) -> Self::ValueType[src]

Retreive the stored value

pub fn set(&mut self, value: Self::ValueType)[src]

Change the stored value

Loading content...

Provided methods

pub fn get(&self) -> Self::ValueType[src]

pub fn add(&mut self, value: Self::ValueType)[src]

pub fn sub(&mut self, value: Self::ValueType)[src]

pub fn inc(&mut self)[src]

pub fn dec(&mut self)[src]

Loading content...

Implementors

Loading content...