Enum elflib::SymbolType

source ·
#[repr(u8)]
pub enum SymbolType {
Show 15 variants RenesasEntry = 14, _PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc = 13, HpOpaque = 11, _HpStubOrHios = 12, _Arm16BitOrHiproc = 15, Notype = 0, Object = 1, Func = 2, Section = 3, File = 4, Common = 5, Tls = 6, Relc = 8, Srelc = 9, _LoosOrGnuIfunc = 10,
}

Variants§

§

RenesasEntry = 14

Set for functions called at reset time.

§

_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc = 13

PariscMilli Or global reg reserved to app Or Processor-specific semantics Or Global register reserved to app Or Millicode function entry point Or A Thumb function

§

HpOpaque = 11

§

_HpStubOrHios = 12

HpStub Or OS-specific semantics

§

_Arm16BitOrHiproc = 15

A Thumb label Or Processor-specific semantics

§

Notype = 0

Symbol type is unspecified

§

Object = 1

Symbol is a data object

§

Func = 2

Symbol is a code object

§

Section = 3

Symbol associated with a section

§

File = 4

Symbol gives a file name

§

Common = 5

An uninitialised common block

§

Tls = 6

Thread local data object

§

Relc = 8

Complex relocation expression

§

Srelc = 9

Signed Complex relocation expression

§

_LoosOrGnuIfunc = 10

OS-specific semantics Or Symbol is an indirect code object

Implementations§

source§

impl SymbolType

source

pub const PariscMilli: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

source

pub const Register: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

global reg reserved to app.

source

pub const Loproc: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

Processor-specific semantics

source

pub const SparcRegister: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

Global register reserved to app.

source

pub const PariscMillicode: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

Millicode function entry point.

source

pub const ArmTfunc: Self = Self::_PariscMilliOrRegisterOrLoprocOrSparcRegisterOrPariscMillicodeOrArmTfunc

A Thumb function.

source

pub const HpStub: Self = Self::_HpStubOrHios

source

pub const Hios: Self = Self::_HpStubOrHios

OS-specific semantics

source

pub const Arm16Bit: Self = Self::_Arm16BitOrHiproc

A Thumb label.

source

pub const Hiproc: Self = Self::_Arm16BitOrHiproc

Processor-specific semantics

source

pub const Loos: Self = Self::_LoosOrGnuIfunc

OS-specific semantics

source

pub const GnuIfunc: Self = Self::_LoosOrGnuIfunc

Symbol is an indirect code object

Trait Implementations§

source§

impl BinarySerde for SymbolType

source§

const SERIALIZED_SIZE: usize = 1usize

the size of this type when serialized to a packed binary format.
§

type RecursiveArray = <u8 as BinarySerde>::RecursiveArray

the fixed size recursive array type that is returned when serializing this type to an array. the length of this array is guaranteed to be equal to Self::SERIALIZED_SIZE.
source§

fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)

serialize this value into the given buffer using the given endianness. Read more
source§

fn binary_deserialize( buf: &[u8], endianness: Endianness ) -> Result<Self, DeserializeError>

deserializes the given buffer using the given endianness into a value of this type. Read more
source§

fn binary_serialize_to_array( &self, endianness: Endianness ) -> Self::RecursiveArray

serialize this value to a fixed size array using the given endianness.
source§

impl Clone for SymbolType

source§

fn clone(&self) -> SymbolType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SymbolType

source§

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

Formats the value using the given formatter. Read more
source§

impl Hash for SymbolType

source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for SymbolType

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SymbolType

source§

impl Eq for SymbolType

source§

impl StructuralEq for SymbolType

source§

impl StructuralPartialEq for SymbolType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.