Trait object::read::traits::ObjectComdat
source · 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.