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§
Sourcefn section_type(&self) -> ElfSectionType
fn section_type(&self) -> ElfSectionType
Get the section type as an ElfSectionType enum variant.
Sourcefn flags(&self) -> ElfSectionFlags
fn flags(&self) -> ElfSectionFlags
Get the section’s flags.
Sourcefn name_from_string_table<'a>(
&self,
name: &'a [u8],
) -> Result<&'a CStr, FromBytesUntilNulError>
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".