Trait object::read::xcoff::Symbol

source ·
pub trait Symbol: Debug + Pod {
    type Word: Into<u64>;

    // Required methods
    fn n_value(&self) -> Self::Word;
    fn n_scnum(&self) -> i16;
    fn n_type(&self) -> u16;
    fn n_sclass(&self) -> u8;
    fn n_numaux(&self) -> u8;
    fn name_offset(&self) -> Option<u32>;
    fn name<'data, R: ReadRef<'data>>(
        &'data self,
        strings: StringTable<'data, R>
    ) -> Result<&'data [u8]>;

    // Provided methods
    fn is_undefined(&self) -> bool { ... }
    fn has_aux_file(&self) -> bool { ... }
    fn has_aux_csect(&self) -> bool { ... }
}
Expand description

A trait for generic access to xcoff::Symbol32 and xcoff::Symbol64.

Required Associated Types§

Required Methods§

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 name<'data, R: ReadRef<'data>>( &'data self, strings: StringTable<'data, R> ) -> Result<&'data [u8]>

Provided Methods§

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.

A csect auxiliary entry is required for each symbol table entry that has a storage class value of C_EXT, C_WEAKEXT, or C_HIDEXT.

Object Safety§

This trait is not object safe.

Implementors§