pub struct BaseRelocs<'a> { /* private fields */ }Expand description
Base Relocations Directory.
For more information see the module-level documentation.
Implementations§
Source§impl<'a> BaseRelocs<'a>
impl<'a> BaseRelocs<'a>
Sourcepub fn parse(relocs: &'a [u8]) -> Result<BaseRelocs<'a>>
pub fn parse(relocs: &'a [u8]) -> Result<BaseRelocs<'a>>
Parse a base relocations directory.
Requires relocs argument pointer to have an alignment of 4 or an error is returned.
Sourcepub fn iter_blocks(&self) -> IterBlocks<'a> ⓘ
pub fn iter_blocks(&self) -> IterBlocks<'a> ⓘ
Iterates over the base relocation blocks.
Trait Implementations§
Source§impl<'a> Clone for BaseRelocs<'a>
impl<'a> Clone for BaseRelocs<'a>
Source§fn clone(&self) -> BaseRelocs<'a>
fn clone(&self) -> BaseRelocs<'a>
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<'a> Debug for BaseRelocs<'a>
impl<'a> Debug for BaseRelocs<'a>
impl<'a> Copy for BaseRelocs<'a>
Auto Trait Implementations§
impl<'a> Freeze for BaseRelocs<'a>
impl<'a> RefUnwindSafe for BaseRelocs<'a>
impl<'a> Send for BaseRelocs<'a>
impl<'a> Sync for BaseRelocs<'a>
impl<'a> Unpin for BaseRelocs<'a>
impl<'a> UnwindSafe for BaseRelocs<'a>
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