pub struct ElfSegment<'data, 'file, Elf, R = &'data [u8]> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>, { /* private fields */ }
Expand description
A segment of an ElfFile
.
Trait Implementations
sourceimpl<'data, 'file, Elf: Debug, R: Debug> Debug for ElfSegment<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::ProgramHeader: Debug,
impl<'data, 'file, Elf: Debug, R: Debug> Debug for ElfSegment<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::ProgramHeader: Debug,
sourceimpl<'data, 'file, Elf, R> ObjectSegment<'data> for ElfSegment<'data, 'file, Elf, R> where
Elf: FileHeader,
R: ReadRef<'data>,
impl<'data, 'file, Elf, R> ObjectSegment<'data> for ElfSegment<'data, 'file, Elf, R> where
Elf: FileHeader,
R: ReadRef<'data>,
sourcefn data(&self) -> Result<&'data [u8]>
fn data(&self) -> Result<&'data [u8]>
Returns a reference to the file contents of the segment. Read more
sourcefn data_range(&self, address: u64, size: u64) -> Result<Option<&'data [u8]>>
fn data_range(&self, address: u64, size: u64) -> Result<Option<&'data [u8]>>
Return the segment data in the given range. Read more
sourcefn flags(&self) -> SegmentFlags
fn flags(&self) -> SegmentFlags
Return the flags of segment.
Auto Trait Implementations
impl<'data, 'file, Elf, R> RefUnwindSafe for ElfSegment<'data, 'file, Elf, R> where
Elf: RefUnwindSafe,
R: RefUnwindSafe,
<Elf as FileHeader>::Endian: RefUnwindSafe,
<Elf as FileHeader>::ProgramHeader: RefUnwindSafe,
<Elf as FileHeader>::SectionHeader: RefUnwindSafe,
<Elf as FileHeader>::Sym: RefUnwindSafe,
impl<'data, 'file, Elf, R> Send for ElfSegment<'data, 'file, Elf, R> where
Elf: Sync,
R: Sync,
<Elf as FileHeader>::Endian: Sync,
<Elf as FileHeader>::ProgramHeader: Sync,
<Elf as FileHeader>::SectionHeader: Sync,
<Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Sync for ElfSegment<'data, 'file, Elf, R> where
Elf: Sync,
R: Sync,
<Elf as FileHeader>::Endian: Sync,
<Elf as FileHeader>::ProgramHeader: Sync,
<Elf as FileHeader>::SectionHeader: Sync,
<Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Unpin for ElfSegment<'data, 'file, Elf, R> where
'data: 'file,
impl<'data, 'file, Elf, R> UnwindSafe for ElfSegment<'data, 'file, Elf, R> where
Elf: RefUnwindSafe,
R: RefUnwindSafe,
<Elf as FileHeader>::Endian: RefUnwindSafe,
<Elf as FileHeader>::ProgramHeader: RefUnwindSafe,
<Elf as FileHeader>::SectionHeader: RefUnwindSafe,
<Elf as FileHeader>::Sym: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more