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 section(&self) -> Option<SectionIndex> { ... }
    fn is_null(&self) -> bool { ... }
    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 section(&self) -> Option<SectionIndex>
 
fn section(&self) -> Option<SectionIndex>
Return the section index for the symbol.
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.