pub struct ElfComdat<'data, 'file, Elf, R = &'data [u8]>where
    Elf: FileHeader,
    R: ReadRef<'data>,{
    file: &'file ElfFile<'data, Elf, R>,
    section: &'data Elf::SectionHeader,
    sections: &'data [U32Bytes<Elf::Endian>],
}Expand description
A COMDAT section group in an ElfFile.
Most functionality is provided by the ObjectComdat trait implementation.
Fields§
§file: &'file ElfFile<'data, Elf, R>§section: &'data Elf::SectionHeader§sections: &'data [U32Bytes<Elf::Endian>]Implementations§
Source§impl<'data, 'file, Elf, R> ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader,
    R: ReadRef<'data>,
 
impl<'data, 'file, Elf, R> ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader,
    R: ReadRef<'data>,
fn parse( file: &'file ElfFile<'data, Elf, R>, section: &'data Elf::SectionHeader, ) -> Option<ElfComdat<'data, 'file, Elf, R>>
Sourcepub fn elf_file(&self) -> &'file ElfFile<'data, Elf, R>
 
pub fn elf_file(&self) -> &'file ElfFile<'data, Elf, R>
Get the ELF file containing this COMDAT section group.
Sourcepub fn elf_section_header(&self) -> &'data Elf::SectionHeader
 
pub fn elf_section_header(&self) -> &'data Elf::SectionHeader
Get the raw ELF section header for the COMDAT section group.
Trait Implementations§
Source§impl<'data, 'file, Elf, R> Debug for ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader + Debug,
    R: ReadRef<'data> + Debug,
    Elf::SectionHeader: Debug,
    Elf::Endian: Debug,
 
impl<'data, 'file, Elf, R> Debug for ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader + Debug,
    R: ReadRef<'data> + Debug,
    Elf::SectionHeader: Debug,
    Elf::Endian: Debug,
Source§impl<'data, 'file, Elf, R> ObjectComdat<'data> for ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader,
    R: ReadRef<'data>,
 
impl<'data, 'file, Elf, R> ObjectComdat<'data> for ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader,
    R: ReadRef<'data>,
Source§type SectionIterator = ElfComdatSectionIterator<'data, 'file, Elf, R>
 
type SectionIterator = ElfComdatSectionIterator<'data, 'file, Elf, R>
An iterator for the sections in the section group.
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<&'data [u8]>
 
fn name_bytes(&self) -> Result<&'data [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.
impl<'data, 'file, Elf, R> Sealed for ElfComdat<'data, 'file, Elf, R>where
    Elf: FileHeader,
    R: ReadRef<'data>,
Auto Trait Implementations§
impl<'data, 'file, Elf, R> Freeze for ElfComdat<'data, 'file, Elf, R>
impl<'data, 'file, Elf, R> RefUnwindSafe for ElfComdat<'data, 'file, Elf, R>where
    <Elf as FileHeader>::SectionHeader: RefUnwindSafe,
    <Elf as FileHeader>::Endian: RefUnwindSafe,
    R: RefUnwindSafe,
    Elf: RefUnwindSafe,
    <Elf as FileHeader>::ProgramHeader: RefUnwindSafe,
    <Elf as FileHeader>::Sym: RefUnwindSafe,
impl<'data, 'file, Elf, R> Send for ElfComdat<'data, 'file, Elf, R>where
    <Elf as FileHeader>::SectionHeader: Sync,
    <Elf as FileHeader>::Endian: Sync,
    R: Sync,
    Elf: Sync,
    <Elf as FileHeader>::ProgramHeader: Sync,
    <Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Sync for ElfComdat<'data, 'file, Elf, R>where
    <Elf as FileHeader>::SectionHeader: Sync,
    <Elf as FileHeader>::Endian: Sync,
    R: Sync,
    Elf: Sync,
    <Elf as FileHeader>::ProgramHeader: Sync,
    <Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Unpin for ElfComdat<'data, 'file, Elf, R>
impl<'data, 'file, Elf, R> UnwindSafe for ElfComdat<'data, 'file, Elf, R>where
    <Elf as FileHeader>::SectionHeader: RefUnwindSafe,
    <Elf as FileHeader>::Endian: RefUnwindSafe,
    R: RefUnwindSafe,
    Elf: RefUnwindSafe,
    <Elf as FileHeader>::ProgramHeader: RefUnwindSafe,
    <Elf as FileHeader>::Sym: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more