Struct object::xcoff::Symbol32

source ·
#[repr(C)]
pub struct Symbol32 { pub n_name: [u8; 8], pub n_value: U32<BigEndian>, pub n_scnum: I16<BigEndian>, pub n_type: U16<BigEndian>, pub n_sclass: u8, pub n_numaux: u8, }
Expand description

Symbol table entry.

Fields§

§n_name: [u8; 8]

Symbol name.

If first 4 bytes are 0, then second 4 bytes are offset into string table.

§n_value: U32<BigEndian>

Symbol value; storage class-dependent.

§n_scnum: I16<BigEndian>

Section number of symbol.

§n_type: U16<BigEndian>

Basic and derived type specification.

§n_sclass: u8

Storage class of symbol.

§n_numaux: u8

Number of auxiliary entries.

Trait Implementations§

source§

impl Clone for Symbol32

source§

fn clone(&self) -> Symbol32

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 Symbol32

source§

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

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

impl Symbol for Symbol32

source§

fn name<'data, R: ReadRef<'data>>( &'data self, strings: StringTable<'data, R> ) -> Result<&'data [u8]>

Parse the symbol name for XCOFF32.

§

type Word = u32

source§

fn n_value(&self) -> Self::Word

source§

fn n_scnum(&self) -> i16

source§

fn n_type(&self) -> u16

source§

fn n_sclass(&self) -> u8

source§

fn n_numaux(&self) -> u8

source§

fn name_offset(&self) -> Option<u32>

source§

fn is_undefined(&self) -> bool

Return true if the symbol is undefined.
source§

fn has_aux_file(&self) -> bool

Return true if the symbol has file auxiliary entry.
source§

fn has_aux_csect(&self) -> bool

Return true if the symbol has csect auxiliary entry. Read more
source§

impl Copy for Symbol32

source§

impl Pod for Symbol32

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.