Struct ckb_vm::machine::DefaultCoreMachine
source · pub struct DefaultCoreMachine<R, M> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<R: Register, M: Memory<REG = R>> CoreMachine for DefaultCoreMachine<R, M>
impl<R: Register, M: Memory<REG = R>> CoreMachine for DefaultCoreMachine<R, M>
type REG = R
type MEM = M
fn pc(&self) -> &Self::REG
fn update_pc(&mut self, pc: Self::REG)
fn commit_pc(&mut self)
fn memory(&self) -> &Self::MEM
fn memory_mut(&mut self) -> &mut Self::MEM
fn registers(&self) -> &[Self::REG]
fn set_register(&mut self, idx: usize, value: Self::REG)
fn isa(&self) -> u8
fn version(&self) -> u32
source§impl<R: Default, M: Default> Default for DefaultCoreMachine<R, M>
impl<R: Default, M: Default> Default for DefaultCoreMachine<R, M>
source§fn default() -> DefaultCoreMachine<R, M>
fn default() -> DefaultCoreMachine<R, M>
Returns the “default value” for a type. Read more