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 CompressionHeader32 and CompressionHeader64.

Required Associated Types§

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

Implementors§

source§

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

§

type Word = u32

§

type Endian = Endian

source§

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

§

type Word = u64

§

type Endian = Endian