Struct object::read::macho::MachOSection [−][src]
pub struct MachOSection<'data, 'file, Mach, R = &'data [u8]> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>, { /* fields omitted */ }
A section of a MachOFile
.
Trait Implementations
impl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOSection<'data, 'file, Mach, R> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>,
[src]
impl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOSection<'data, 'file, Mach, R> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>,
[src]impl<'data, 'file, Mach, R> ObjectSection<'data> for MachOSection<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]
impl<'data, 'file, Mach, R> ObjectSection<'data> for MachOSection<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]type RelocationIterator = MachORelocationIterator<'data, 'file, Mach, R>
An iterator over the relocations for a section. Read more
fn index(&self) -> SectionIndex
[src]
fn address(&self) -> u64
[src]
fn size(&self) -> u64
[src]
fn align(&self) -> u64
[src]
fn file_range(&self) -> Option<(u64, u64)>
[src]
fn data(&self) -> Result<&'data [u8]>
[src]
fn data_range(&self, address: u64, size: u64) -> Result<Option<&'data [u8]>>
[src]
fn compressed_file_range(&self) -> Result<CompressedFileRange>
[src]
fn compressed_data(&self) -> Result<CompressedData<'data>>
[src]
fn name(&self) -> Result<&str>
[src]
fn segment_name(&self) -> Result<Option<&str>>
[src]
fn kind(&self) -> SectionKind
[src]
fn relocations(&self) -> MachORelocationIterator<'data, 'file, Mach, R>ⓘNotable traits for MachORelocationIterator<'data, 'file, Mach, R>
impl<'data, 'file, Mach, R> Iterator for MachORelocationIterator<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>, type Item = (u64, Relocation);
[src]
Notable traits for MachORelocationIterator<'data, 'file, Mach, R>
impl<'data, 'file, Mach, R> Iterator for MachORelocationIterator<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>, type Item = (u64, Relocation);
fn flags(&self) -> SectionFlags
[src]
fn uncompressed_data(&self) -> Result<Cow<'data, [u8]>>
[src]
Auto Trait Implementations
impl<'data, 'file, Mach, R> RefUnwindSafe for MachOSection<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
impl<'data, 'file, Mach, R> RefUnwindSafe for MachOSection<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
impl<'data, 'file, Mach, R> Send for MachOSection<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Send for MachOSection<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Sync for MachOSection<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Sync for MachOSection<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Unpin for MachOSection<'data, 'file, Mach, R> where
'data: 'file,
impl<'data, 'file, Mach, R> Unpin for MachOSection<'data, 'file, Mach, R> where
'data: 'file,
impl<'data, 'file, Mach, R> UnwindSafe for MachOSection<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
impl<'data, 'file, Mach, R> UnwindSafe for MachOSection<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,