object::read::xcoff

Trait Rel

Source
pub trait Rel: Debug + Pod {
    type Word: Into<u64>;

    // Required methods
    fn r_vaddr(&self) -> Self::Word;
    fn r_symndx(&self) -> u32;
    fn r_rsize(&self) -> u8;
    fn r_rtype(&self) -> u8;

    // Provided method
    fn symbol(&self) -> SymbolIndex { ... }
}
Expand description

A trait for generic access to xcoff::Rel32 and xcoff::Rel64.

Required Associated Types§

Required Methods§

Source

fn r_vaddr(&self) -> Self::Word

Source

fn r_symndx(&self) -> u32

Source

fn r_rsize(&self) -> u8

Source

fn r_rtype(&self) -> u8

Provided Methods§

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.

Implementors§