pub enum StorageLocation {
Reg(Reg),
StackOffset(target_ulong),
StackReg(Reg, target_ulong),
}Variants§
Implementations§
Source§impl StorageLocation
impl StorageLocation
pub fn read(self, cpu: &mut CPUState) -> target_ulong
pub fn write(self, cpu: &mut CPUState, val: target_ulong)
Trait Implementations§
Source§impl Clone for StorageLocation
impl Clone for StorageLocation
Source§fn clone(&self) -> StorageLocation
fn clone(&self) -> StorageLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageLocation
impl Debug for StorageLocation
Source§impl From<(Reg, u64)> for StorageLocation
impl From<(Reg, u64)> for StorageLocation
Source§fn from((reg, offset): (Reg, target_ulong)) -> Self
fn from((reg, offset): (Reg, target_ulong)) -> Self
Converts to this type from the input type.
Source§impl From<Reg> for StorageLocation
impl From<Reg> for StorageLocation
Source§impl PartialEq for StorageLocation
impl PartialEq for StorageLocation
impl Copy for StorageLocation
impl StructuralPartialEq for StorageLocation
Auto Trait Implementations§
impl Freeze for StorageLocation
impl RefUnwindSafe for StorageLocation
impl Send for StorageLocation
impl Sync for StorageLocation
impl Unpin for StorageLocation
impl UnwindSafe for StorageLocation
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