Trait object::read::xcoff::FileAux

source ·
pub trait FileAux: Debug + Pod {
    // Required methods
    fn x_fname(&self) -> &[u8; 8];
    fn x_ftype(&self) -> u8;
    fn x_auxtype(&self) -> Option<u8>;

    // Provided methods
    fn name_offset(&self) -> Option<u32> { ... }
    fn fname<'data, R: ReadRef<'data>>(
        &'data self,
        strings: StringTable<'data, R>
    ) -> Result<&'data [u8]> { ... }
}
Expand description

A trait for generic access to xcoff::FileAux32 and xcoff::FileAux64.

Required Methods§

source

fn x_fname(&self) -> &[u8; 8]

source

fn x_ftype(&self) -> u8

source

fn x_auxtype(&self) -> Option<u8>

Provided Methods§

source

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

source

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

Parse the x_fname field, which may be an inline string or a string table offset.

Object Safety§

This trait is not object safe.

Implementors§