Trait object::read::ObjectComdat
source · [−]pub trait ObjectComdat<'data>: Sealed {
type SectionIterator: Iterator<Item = SectionIndex>;
fn kind(&self) -> ComdatKind;
fn symbol(&self) -> SymbolIndex;
fn name_bytes(&self) -> Result<&[u8]>;
fn name(&self) -> Result<&str>;
fn sections(&self) -> Self::SectionIterator;
}
Expand description
A COMDAT section group defined in an object file.
Associated Types
type SectionIterator: Iterator<Item = SectionIndex>
type SectionIterator: Iterator<Item = SectionIndex>
An iterator over the sections in the object file.
Required methods
fn kind(&self) -> ComdatKind
fn kind(&self) -> ComdatKind
Returns the COMDAT selection kind.
fn symbol(&self) -> SymbolIndex
fn symbol(&self) -> SymbolIndex
Returns the index of the symbol used for the name of COMDAT section group.
Returns the name of the COMDAT section group.
Returns an error if the name is not UTF-8.
fn sections(&self) -> Self::SectionIterator
fn sections(&self) -> Self::SectionIterator
Get the sections in this section group.