pub trait ElfSection {
// Required methods
fn shdr(&self) -> &dyn ElfSectionHeader;
fn name(&self) -> &str;
fn section_type(&self) -> &SectionType;
fn flags(&self) -> BitFlags<SectionFlag>;
fn data(&self) -> &[u8] ⓘ;
}
Expand description
A trait to provide all functions supported by ElfSectionXX structure representation. Dynamic dispatch is used to provide only function usages, thus 32-bit and 64-bit can be used alike.
Required Methods§
Sourcefn shdr(&self) -> &dyn ElfSectionHeader
fn shdr(&self) -> &dyn ElfSectionHeader
Internal shdr representation of this section. Note that since dynamic dispatch is used, this method mostly just provide the functionalities, not the full struct.
Sourcefn section_type(&self) -> &SectionType
fn section_type(&self) -> &SectionType
Type of this section
Sourcefn flags(&self) -> BitFlags<SectionFlag>
fn flags(&self) -> BitFlags<SectionFlag>
Flags of this section