Struct CompressionHeader32
struct CompressionHeader32<E: Endian> { ... }
Section compression header.
Used when SHF_COMPRESSED is set.
Note: this type currently allows for misaligned headers, but that may be changed in a future version.
Fields
ch_type: crate::endian::U32Bytes<E>Compression format. One of the
ELFCOMPRESS_*values.ch_size: crate::endian::U32Bytes<E>Uncompressed data size.
ch_addralign: crate::endian::U32Bytes<E>Uncompressed data alignment.
Implementations
impl<E> Freeze for CompressionHeader32<E>
impl<E> RefUnwindSafe for CompressionHeader32<E>
impl<E> Send for CompressionHeader32<E>
impl<E> Sync for CompressionHeader32<E>
impl<E> Unpin for CompressionHeader32<E>
impl<E> UnwindSafe for CompressionHeader32<E>
impl<E: $crate::clone::Clone + Endian> Clone for CompressionHeader32<E>
fn clone(self: &Self) -> CompressionHeader32<E>
impl<E: $crate::default::Default + Endian> Default for CompressionHeader32<E>
fn default() -> CompressionHeader32<E>
impl<E: $crate::fmt::Debug + Endian> Debug for CompressionHeader32<E>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<E: $crate::marker::Copy + Endian> Copy for CompressionHeader32<E>
impl<E: Endian> Pod for CompressionHeader32<E>
impl<Endian: endian::Endian> CompressionHeader for elf::CompressionHeader32<Endian>
fn ch_type(self: &Self, endian: <Self as >::Endian) -> u32fn ch_size(self: &Self, endian: <Self as >::Endian) -> <Self as >::Wordfn ch_addralign(self: &Self, endian: <Self as >::Endian) -> <Self as >::Word
impl<T> Any for CompressionHeader32<E>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for CompressionHeader32<E>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for CompressionHeader32<E>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for CompressionHeader32<E>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for CompressionHeader32<E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for CompressionHeader32<E>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for CompressionHeader32<E>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for CompressionHeader32<E>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for CompressionHeader32<E>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>