pub enum RelocationInstruction {
Adr,
Movkz,
Movnz,
Ldr,
LdrRegister,
Add,
LdSt,
TstBr,
Bcond,
JumpCall,
}
Variants§
Implementations§
Source§impl RelocationInstruction
impl RelocationInstruction
pub fn write_to_value( self, extracted_value: u64, negative: bool, dest: &mut [u8], )
Sourcepub fn read_value(self, bytes: &[u8]) -> (u64, bool)
pub fn read_value(self, bytes: &[u8]) -> (u64, bool)
The inverse of write_to_value
. Returns (extracted_value, negative)
. Supplied bytes
must be at least 4 bytes, otherwise we panic.
Trait Implementations§
Source§impl Clone for RelocationInstruction
impl Clone for RelocationInstruction
Source§fn clone(&self) -> RelocationInstruction
fn clone(&self) -> RelocationInstruction
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 RelocationInstruction
impl Debug for RelocationInstruction
Source§impl PartialEq for RelocationInstruction
impl PartialEq for RelocationInstruction
impl Copy for RelocationInstruction
impl Eq for RelocationInstruction
impl StructuralPartialEq for RelocationInstruction
Auto Trait Implementations§
impl Freeze for RelocationInstruction
impl RefUnwindSafe for RelocationInstruction
impl Send for RelocationInstruction
impl Sync for RelocationInstruction
impl Unpin for RelocationInstruction
impl UnwindSafe for RelocationInstruction
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