pub struct XRegVal(/* private fields */);
Available on crate feature
interp
only.Expand description
An x
register value: integers.
Implementations§
Source§impl XRegVal
impl XRegVal
Sourcepub const HOST_RETURN_ADDR: Self = _
pub const HOST_RETURN_ADDR: Self = _
Sentinel return address that signals the end of the call stack.
pub fn new_i32(x: i32) -> Self
pub fn new_u32(x: u32) -> Self
pub fn new_i64(x: i64) -> Self
pub fn new_u64(x: u64) -> Self
pub fn new_ptr<T>(ptr: *mut T) -> Self
pub fn get_i32(&self) -> i32
pub fn get_u32(&self) -> u32
pub fn get_i64(&self) -> i64
pub fn get_u64(&self) -> u64
pub fn get_ptr<T>(&self) -> *mut T
pub fn set_i32(&mut self, x: i32)
pub fn set_u32(&mut self, x: u32)
pub fn set_i64(&mut self, x: i64)
pub fn set_u64(&mut self, x: u64)
pub fn set_ptr<T>(&mut self, ptr: *mut T)
Trait Implementations§
impl Copy for XRegVal
impl Eq for XRegVal
Auto Trait Implementations§
impl Freeze for XRegVal
impl RefUnwindSafe for XRegVal
impl !Send for XRegVal
impl !Sync for XRegVal
impl Unpin for XRegVal
impl UnwindSafe for XRegVal
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