pub trait ObjectComdat<'data>: Sealed {
    type SectionIterator: Iterator<Item = SectionIndex>;
    // Required methods
    fn kind(&self) -> ComdatKind;
    fn symbol(&self) -> SymbolIndex;
    fn name_bytes(&self) -> Result<&'data [u8]>;
    fn name(&self) -> Result<&'data str>;
    fn sections(&self) -> Self::SectionIterator;
}Expand description
A COMDAT section group in an Object.
This trait is part of the unified read API.
Required Associated Types§
Sourcetype SectionIterator: Iterator<Item = SectionIndex>
 
type SectionIterator: Iterator<Item = SectionIndex>
An iterator for the sections in the section group.
Required Methods§
Sourcefn kind(&self) -> ComdatKind
 
fn kind(&self) -> ComdatKind
Returns the COMDAT selection kind.
Sourcefn symbol(&self) -> SymbolIndex
 
fn symbol(&self) -> SymbolIndex
Returns the index of the symbol used for the name of COMDAT section group.
Sourcefn name_bytes(&self) -> Result<&'data [u8]>
 
fn name_bytes(&self) -> Result<&'data [u8]>
Returns the name of the COMDAT section group.
Sourcefn name(&self) -> Result<&'data str>
 
fn name(&self) -> Result<&'data str>
Returns the name of the COMDAT section group.
Returns an error if the name is not UTF-8.
Sourcefn sections(&self) -> Self::SectionIterator
 
fn sections(&self) -> Self::SectionIterator
Get the sections in this section group.