pub struct Spike { /* private fields */ }Implementations§
Source§impl Spike
impl Spike
pub fn new(mem_size: u64) -> Self
pub fn execute(&self, instruction: u64) -> Result<(), Error>
pub fn get_reg(&self, index: u64) -> Result<u64, Error>
pub fn set_reg(&self, index: u64, content: u64) -> Result<(), Error>
pub fn ld(&self, addr: u64, len: u64, bytes: *mut u8) -> Result<(), Error>
pub fn sd(&self, addr: u64, len: u64, bytes: *mut u8) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spike
impl RefUnwindSafe for Spike
impl Send for Spike
impl Sync for Spike
impl Unpin for Spike
impl UnwindSafe for Spike
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more