Skip to main content

ElfSectionExt

Trait ElfSectionExt 

Source
pub trait ElfSectionExt {
    // Required methods
    fn section_type(&self) -> ElfSectionType;
    fn flags(&self) -> ElfSectionFlags;
    fn name_from_string_table<'a>(
        &self,
        name: &'a [u8],
    ) -> Result<&'a CStr, FromBytesUntilNulError>;
}
Expand description

Extension trait for SectionHeader containing getters for rust-native types

Required Methods§

Source

fn section_type(&self) -> ElfSectionType

Get the section type as an ElfSectionType enum variant.

Source

fn flags(&self) -> ElfSectionFlags

Get the section’s flags.

Source

fn name_from_string_table<'a>( &self, name: &'a [u8], ) -> Result<&'a CStr, FromBytesUntilNulError>

Fetches the section name from the string table.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ElfSectionExt for SectionHeader

Implementors§