Struct Memory
pub struct Memory { /* private fields */ }
Expand description
This structure represents a memory operand.
ldr x0, [x1, x2, lsl #3]
| | |
+------------+ | +--------+
| | |
v v v
Base Reg Offset Shift
Implementations§
§impl Memory
impl Memory
pub fn offset(&self) -> Option<Offset>
pub fn offset(&self) -> Option<Offset>
The addressing offset.
It can be either:
- A register (e.g.
ldr x0, [x1, x3]
) - An offset (e.g.
ldr x0, [x1, #8]
)
pub fn shift(&self) -> Option<ShiftInfo>
pub fn shift(&self) -> Option<ShiftInfo>
Shift information.
For instance, for ldr x1, [x2, x3, lsl #3]
it would
return a Shift::Lsl
with a ShiftInfo::value
set to 3
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl !RefUnwindSafe for Memory
impl !Send for Memory
impl !Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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