pub struct Relocation {
pub source: Option<String>,
/* private fields */
}Fields§
§source: Option<String>Implementations§
Source§impl Relocation
impl Relocation
pub fn new_call( from: u32, to: u32, module: RelocationModule, from_thumb: bool, to_thumb: bool, ) -> Self
pub fn new_branch(from: u32, to: u32, module: RelocationModule) -> Self
pub fn new_load( from: u32, to: u32, addend: i32, module: RelocationModule, ) -> Self
pub fn from_address(&self) -> u32
pub fn to_address(&self) -> u32
pub fn kind(&self) -> RelocationKind
pub fn module(&self) -> &RelocationModule
pub fn addend(&self) -> i64
pub fn addend_value(&self) -> i32
Trait Implementations§
Source§impl Display for Relocation
impl Display for Relocation
Source§impl PartialEq for Relocation
impl PartialEq for Relocation
impl Eq for Relocation
impl StructuralPartialEq for Relocation
Auto Trait Implementations§
impl Freeze for Relocation
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.