Enum RegMem
pub enum RegMem {
Reg {
reg: Reg,
},
Mem {
addr: SyntheticAmode,
},
}
Expand description
An operand which is either an integer Register or a value in Memory. This can denote an 8, 16, 32, 64, or 128 bit value.
Variants§
Reg
A register operand.
Fields
§
reg: Reg
The underlying register.
Mem
A memory operand.
Fields
§
addr: SyntheticAmode
The memory address.
Implementations§
Trait Implementations§
§impl<'a> From<&'a XmmMemAligned> for &'a RegMem
impl<'a> From<&'a XmmMemAligned> for &'a RegMem
§fn from(rm: &'a XmmMemAligned) -> &'a RegMem
fn from(rm: &'a XmmMemAligned) -> &'a RegMem
Converts to this type from the input type.
§impl From<XmmMemAligned> for RegMem
impl From<XmmMemAligned> for RegMem
§fn from(rm: XmmMemAligned) -> RegMem
fn from(rm: XmmMemAligned) -> RegMem
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegMem
impl RefUnwindSafe for RegMem
impl Send for RegMem
impl Sync for RegMem
impl Unpin for RegMem
impl UnwindSafe for RegMem
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