Struct object::read::macho::MachOComdat
source · pub struct MachOComdat<'data, 'file, Mach, R = &'data [u8]>where
Mach: MachHeader,
R: ReadRef<'data>,{ /* private fields */ }
Expand description
A COMDAT section group of a MachOFile
.
Trait Implementations§
source§impl<'data, 'file, Mach, R> Debug for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader + Debug,
R: ReadRef<'data> + Debug,
impl<'data, 'file, Mach, R> Debug for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader + Debug,
R: ReadRef<'data> + Debug,
source§impl<'data, 'file, Mach, R> ObjectComdat<'data> for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader,
R: ReadRef<'data>,
impl<'data, 'file, Mach, R> ObjectComdat<'data> for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader,
R: ReadRef<'data>,
§type SectionIterator = MachOComdatSectionIterator<'data, 'file, Mach, R>
type SectionIterator = MachOComdatSectionIterator<'data, 'file, Mach, R>
An iterator over the sections in the object file.
source§fn kind(&self) -> ComdatKind
fn kind(&self) -> ComdatKind
Returns the COMDAT selection kind.
source§fn symbol(&self) -> SymbolIndex
fn symbol(&self) -> SymbolIndex
Returns the index of the symbol used for the name of COMDAT section group.
source§fn name_bytes(&self) -> Result<&[u8]>
fn name_bytes(&self) -> Result<&[u8]>
Returns the name of the COMDAT section group.
source§fn sections(&self) -> Self::SectionIterator
fn sections(&self) -> Self::SectionIterator
Get the sections in this section group.