Enum SymbolSection

enum SymbolSection

The section where an ObjectSymbol is defined.

Variants

Unknown

The section is unknown.

None

The section is not applicable for this symbol (such as file symbols).

Undefined

The symbol is undefined.

Absolute

The symbol has an absolute value.

Common

The symbol is a zero-initialized symbol that will be combined with duplicate definitions.

Section(SectionIndex)

The symbol is defined in the given section.

Implementations

impl SymbolSection

fn index(self: Self) -> Option<SectionIndex>

Returns the section index for the section where the symbol is defined.

May return None if the symbol is not defined in a section.

impl Clone for SymbolSection

fn clone(self: &Self) -> SymbolSection

impl Copy for SymbolSection

impl Debug for SymbolSection

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for SymbolSection

impl Freeze for SymbolSection

impl Hash for SymbolSection

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for SymbolSection

fn eq(self: &Self, other: &SymbolSection) -> bool

impl RefUnwindSafe for SymbolSection

impl Send for SymbolSection

impl StructuralPartialEq for SymbolSection

impl Sync for SymbolSection

impl Unpin for SymbolSection

impl UnwindSafe for SymbolSection

impl<T> Any for SymbolSection

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SymbolSection

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SymbolSection

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for SymbolSection

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for SymbolSection

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SymbolSection

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for SymbolSection

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for SymbolSection

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SymbolSection

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>