Struct object::xcoff::Symbol64

source ·
#[repr(C)]
pub struct Symbol64 { pub n_value: U64<BigEndian>, pub n_offset: 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_value: U64<BigEndian>

Symbol value; storage class-dependent.

§n_offset: U32<BigEndian>

Offset of the name in string table or .debug section.

§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 Symbol64

source§

fn clone(&self) -> Symbol64

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 Symbol64

source§

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

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

impl Symbol for Symbol64

source§

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

Parse the symbol name for XCOFF64.

source§

type Word = u64

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 section(&self) -> Option<SectionIndex>

Return the section index for the symbol.
source§

fn is_null(&self) -> bool

Return true if the symbol is a null placeholder.
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 Symbol64

source§

impl Pod for Symbol64

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

source§

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>,

source§

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>,

source§

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.