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§
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§
sourcefn is_undefined(&self) -> bool
fn is_undefined(&self) -> bool
Return true if the symbol is undefined.
sourcefn has_aux_file(&self) -> bool
fn has_aux_file(&self) -> bool
Return true if the symbol has file auxiliary entry.
sourcefn has_aux_csect(&self) -> bool
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.