Enum elf64::SectionData

source ·
pub enum SectionData<'a> {
    Null,
    ProgramBits(&'a [u8]),
    SymbolTable {
        table: Table<'a, SymbolEntry>,
        number_of_locals: usize,
    },
    StringTable(StringTable<'a>),
    Rela {
        table: Table<'a, RelaEntry>,
        apply_to_section: Index,
    },
    Note(NoteTable<'a>),
    Rel {
        table: Table<'a, RelEntry>,
        apply_to_section: Index,
    },
    DynamicSymbolTable {
        table: Table<'a, SymbolEntry>,
        number_of_locals: usize,
    },
    OsSpecific {
        code: u32,
        slice: &'a [u8],
    },
    ProcessorSprcific {
        code: u32,
        slice: &'a [u8],
    },
    Unknown {
        code: u32,
        slice: &'a [u8],
    },
}

Variants

Null

ProgramBits(&'a [u8])

SymbolTable

Fields

table: Table<'a, SymbolEntry>
number_of_locals: usize

StringTable(StringTable<'a>)

Rela

Fields

table: Table<'a, RelaEntry>
apply_to_section: Index

Note(NoteTable<'a>)

Rel

Fields

table: Table<'a, RelEntry>
apply_to_section: Index

DynamicSymbolTable

Fields

table: Table<'a, SymbolEntry>
number_of_locals: usize

OsSpecific

Fields

code: u32
slice: &'a [u8]

ProcessorSprcific

Fields

code: u32
slice: &'a [u8]

Unknown

Fields

code: u32
slice: &'a [u8]

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.