pub struct RelocationEntry {
raw: u16,
}Expand description
Relocation entry (16 bits) Upper 4 bits: type Lower 12 bits: offset within page
Fields§
§raw: u16Implementations§
Source§impl RelocationEntry
impl RelocationEntry
pub fn new(raw: u16) -> Self
Sourcepub fn reloc_type(&self) -> RelocationType
pub fn reloc_type(&self) -> RelocationType
Get relocation type
Trait Implementations§
Source§impl Clone for RelocationEntry
impl Clone for RelocationEntry
Source§fn clone(&self) -> RelocationEntry
fn clone(&self) -> RelocationEntry
Returns a copy 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 RelocationEntry
impl Debug for RelocationEntry
impl Copy for RelocationEntry
Auto Trait Implementations§
impl Freeze for RelocationEntry
impl RefUnwindSafe for RelocationEntry
impl Send for RelocationEntry
impl Sync for RelocationEntry
impl Unpin for RelocationEntry
impl UnwindSafe for RelocationEntry
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