Trait CompressionHeader

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

    // Required methods
    fn ch_type(&self, endian: Self::Endian) -> u32;
    fn ch_size(&self, endian: Self::Endian) -> Self::Word;
    fn ch_addralign(&self, endian: Self::Endian) -> Self::Word;
}
Expand description

A trait for generic access to elf::CompressionHeader32 and elf::CompressionHeader64.

Required Associated Types§

Source

type Word: Into<u64>

Source

type Endian: Endian

Required Methods§

Source

fn ch_type(&self, endian: Self::Endian) -> u32

Source

fn ch_size(&self, endian: Self::Endian) -> Self::Word

Source

fn ch_addralign(&self, endian: Self::Endian) -> Self::Word

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§

Source§

impl<Endian: Endian> CompressionHeader for CompressionHeader32<Endian>

Source§

type Word = u32

Source§

type Endian = Endian

Source§

impl<Endian: Endian> CompressionHeader for CompressionHeader64<Endian>

Source§

type Word = u64

Source§

type Endian = Endian