Trait object::pod::Pod

source ·
pub unsafe trait Pod: Copy + 'static { }
Expand description

A trait for types that can safely be converted from and to byte slices.

§Safety

A type that is Pod must:

  • be #[repr(C)] or #[repr(transparent)]
  • have no invalid byte values
  • have no padding

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Pod for u8

source§

impl Pod for u16

source§

impl Pod for u32

source§

impl Pod for u64

source§

impl<const N: usize, T: Pod> Pod for [T; N]

Implementors§

source§

impl Pod for FatArch32

source§

impl Pod for FatArch64

source§

impl Pod for FatHeader

source§

impl Pod for AnonObjectHeader

source§

impl Pod for AnonObjectHeaderBigobj

source§

impl Pod for AnonObjectHeaderV2

source§

impl Pod for Guid

source§

impl Pod for ImageAlpha64RuntimeFunctionEntry

source§

impl Pod for ImageAlphaRuntimeFunctionEntry

source§

impl Pod for ImageArchitectureEntry

source§

impl Pod for ImageArchiveMemberHeader

source§

impl Pod for ImageArm64RuntimeFunctionEntry

source§

impl Pod for ImageArmRuntimeFunctionEntry

source§

impl Pod for ImageAuxSymbolCrc

source§

impl Pod for ImageAuxSymbolFunction

source§

impl Pod for ImageAuxSymbolFunctionBeginEnd

source§

impl Pod for ImageAuxSymbolSection

source§

impl Pod for ImageAuxSymbolTokenDef

source§

impl Pod for ImageAuxSymbolWeak

source§

impl Pod for ImageBaseRelocation

source§

impl Pod for ImageBoundForwarderRef

source§

impl Pod for ImageBoundImportDescriptor

source§

impl Pod for ImageCoffSymbolsHeader

source§

impl Pod for ImageCor20Header

source§

impl Pod for ImageDataDirectory

source§

impl Pod for ImageDebugDirectory

source§

impl Pod for ImageDebugMisc

source§

impl Pod for ImageDelayloadDescriptor

source§

impl Pod for ImageDosHeader

source§

impl Pod for ImageDynamicRelocation32

source§

impl Pod for ImageDynamicRelocation32V2

source§

impl Pod for ImageDynamicRelocation64

source§

impl Pod for ImageDynamicRelocation64V2

source§

impl Pod for ImageDynamicRelocationTable

source§

impl Pod for ImageEnclaveConfig32

source§

impl Pod for ImageEnclaveConfig64

source§

impl Pod for ImageEnclaveImport

source§

impl Pod for ImageEpilogueDynamicRelocationHeader

source§

impl Pod for ImageExportDirectory

source§

impl Pod for ImageFileHeader

source§

impl Pod for ImageFunctionEntry64

source§

impl Pod for ImageFunctionEntry

source§

impl Pod for ImageHotPatchBase

source§

impl Pod for ImageHotPatchHashes

source§

impl Pod for ImageHotPatchInfo

source§

impl Pod for ImageImportByName

source§

impl Pod for ImageImportDescriptor

source§

impl Pod for ImageLinenumber

source§

impl Pod for ImageLoadConfigCodeIntegrity

source§

impl Pod for ImageLoadConfigDirectory32

source§

impl Pod for ImageLoadConfigDirectory64

source§

impl Pod for ImageNtHeaders32

source§

impl Pod for ImageNtHeaders64

source§

impl Pod for ImageOptionalHeader32

source§

impl Pod for ImageOptionalHeader64

source§

impl Pod for ImageOs2Header

source§

impl Pod for ImagePrologueDynamicRelocationHeader

source§

impl Pod for ImageRelocation

source§

impl Pod for ImageResourceDataEntry

source§

impl Pod for ImageResourceDirStringU

source§

impl Pod for ImageResourceDirectory

source§

impl Pod for ImageResourceDirectoryEntry

source§

impl Pod for ImageResourceDirectoryString

source§

impl Pod for ImageRomHeaders

source§

impl Pod for ImageRomOptionalHeader

source§

impl Pod for ImageRuntimeFunctionEntry

source§

impl Pod for ImageSectionHeader

source§

impl Pod for ImageSeparateDebugHeader

source§

impl Pod for ImageSymbol

source§

impl Pod for ImageSymbolBytes

source§

impl Pod for ImageSymbolEx

source§

impl Pod for ImageSymbolExBytes

source§

impl Pod for ImageThunkData32

source§

impl Pod for ImageThunkData64

source§

impl Pod for ImageTlsDirectory32

source§

impl Pod for ImageTlsDirectory64

source§

impl Pod for ImageVxdHeader

source§

impl Pod for ImportObjectHeader

source§

impl Pod for MaskedRichHeaderEntry

source§

impl Pod for NonPagedDebugInfo

source§

impl Pod for AuxHeader32

source§

impl Pod for AuxHeader64

source§

impl Pod for BlockAux32

source§

impl Pod for BlockAux64

source§

impl Pod for CsectAux32

source§

impl Pod for CsectAux64

source§

impl Pod for DwarfAux32

source§

impl Pod for DwarfAux64

source§

impl Pod for ExpAux

source§

impl Pod for FileAux32

source§

impl Pod for FileAux64

source§

impl Pod for object::xcoff::FileHeader32

source§

impl Pod for object::xcoff::FileHeader64

source§

impl Pod for FunAux32

source§

impl Pod for FunAux64

source§

impl Pod for object::xcoff::Rel32

source§

impl Pod for object::xcoff::Rel64

source§

impl Pod for object::xcoff::SectionHeader32

source§

impl Pod for object::xcoff::SectionHeader64

source§

impl Pod for StatAux

source§

impl Pod for Symbol32

source§

impl Pod for Symbol64

source§

impl Pod for SymbolBytes

source§

impl<E: Endian> Pod for CompressionHeader32<E>

source§

impl<E: Endian> Pod for CompressionHeader64<E>

source§

impl<E: Endian> Pod for Dyn32<E>

source§

impl<E: Endian> Pod for Dyn64<E>

source§

impl<E: Endian> Pod for object::elf::FileHeader32<E>

source§

impl<E: Endian> Pod for object::elf::FileHeader64<E>

source§

impl<E: Endian> Pod for GnuHashHeader<E>

source§

impl<E: Endian> Pod for HashHeader<E>

source§

impl<E: Endian> Pod for NoteHeader32<E>

source§

impl<E: Endian> Pod for NoteHeader64<E>

source§

impl<E: Endian> Pod for ProgramHeader32<E>

source§

impl<E: Endian> Pod for ProgramHeader64<E>

source§

impl<E: Endian> Pod for object::elf::Rel32<E>

source§

impl<E: Endian> Pod for object::elf::Rel64<E>

source§

impl<E: Endian> Pod for Rela32<E>

source§

impl<E: Endian> Pod for Rela64<E>

source§

impl<E: Endian> Pod for object::elf::SectionHeader32<E>

source§

impl<E: Endian> Pod for object::elf::SectionHeader64<E>

source§

impl<E: Endian> Pod for Sym32<E>

source§

impl<E: Endian> Pod for Sym64<E>

source§

impl<E: Endian> Pod for Syminfo32<E>

source§

impl<E: Endian> Pod for Syminfo64<E>

source§

impl<E: Endian> Pod for Verdaux<E>

source§

impl<E: Endian> Pod for Verdef<E>

source§

impl<E: Endian> Pod for Vernaux<E>

source§

impl<E: Endian> Pod for Verneed<E>

source§

impl<E: Endian> Pod for Versym<E>

source§

impl<E: Endian> Pod for I16<E>

source§

impl<E: Endian> Pod for I16Bytes<E>

source§

impl<E: Endian> Pod for I32<E>

source§

impl<E: Endian> Pod for I32Bytes<E>

source§

impl<E: Endian> Pod for I64<E>

source§

impl<E: Endian> Pod for I64Bytes<E>

source§

impl<E: Endian> Pod for U16<E>

source§

impl<E: Endian> Pod for U16Bytes<E>

source§

impl<E: Endian> Pod for U32<E>

source§

impl<E: Endian> Pod for U32Bytes<E>

source§

impl<E: Endian> Pod for U64<E>

source§

impl<E: Endian> Pod for U64Bytes<E>

source§

impl<E: Endian> Pod for BuildToolVersion<E>

source§

impl<E: Endian> Pod for BuildVersionCommand<E>

source§

impl<E: Endian> Pod for DataInCodeEntry<E>

source§

impl<E: Endian> Pod for DyldCacheHeader<E>

source§

impl<E: Endian> Pod for DyldCacheImageInfo<E>

source§

impl<E: Endian> Pod for DyldCacheMappingInfo<E>

source§

impl<E: Endian> Pod for DyldInfoCommand<E>

source§

impl<E: Endian> Pod for DyldSubCacheEntryV1<E>

source§

impl<E: Endian> Pod for DyldSubCacheEntryV2<E>

source§

impl<E: Endian> Pod for Dylib<E>

source§

impl<E: Endian> Pod for DylibCommand<E>

source§

impl<E: Endian> Pod for DylibModule32<E>

source§

impl<E: Endian> Pod for DylibModule64<E>

source§

impl<E: Endian> Pod for DylibReference<E>

source§

impl<E: Endian> Pod for DylibTableOfContents<E>

source§

impl<E: Endian> Pod for DylinkerCommand<E>

source§

impl<E: Endian> Pod for DysymtabCommand<E>

source§

impl<E: Endian> Pod for EncryptionInfoCommand32<E>

source§

impl<E: Endian> Pod for EncryptionInfoCommand64<E>

source§

impl<E: Endian> Pod for EntryPointCommand<E>

source§

impl<E: Endian> Pod for FilesetEntryCommand<E>

source§

impl<E: Endian> Pod for FvmfileCommand<E>

source§

impl<E: Endian> Pod for Fvmlib<E>

source§

impl<E: Endian> Pod for FvmlibCommand<E>

source§

impl<E: Endian> Pod for IdentCommand<E>

source§

impl<E: Endian> Pod for LcStr<E>

source§

impl<E: Endian> Pod for LinkeditDataCommand<E>

source§

impl<E: Endian> Pod for LinkerOptionCommand<E>

source§

impl<E: Endian> Pod for LoadCommand<E>

source§

impl<E: Endian> Pod for MachHeader32<E>

source§

impl<E: Endian> Pod for MachHeader64<E>

source§

impl<E: Endian> Pod for Nlist32<E>

source§

impl<E: Endian> Pod for Nlist64<E>

source§

impl<E: Endian> Pod for NoteCommand<E>

source§

impl<E: Endian> Pod for PrebindCksumCommand<E>

source§

impl<E: Endian> Pod for PreboundDylibCommand<E>

source§

impl<E: Endian> Pod for Relocation<E>

source§

impl<E: Endian> Pod for RoutinesCommand32<E>

source§

impl<E: Endian> Pod for RoutinesCommand64<E>

source§

impl<E: Endian> Pod for RpathCommand<E>

source§

impl<E: Endian> Pod for Section32<E>

source§

impl<E: Endian> Pod for Section64<E>

source§

impl<E: Endian> Pod for SegmentCommand32<E>

source§

impl<E: Endian> Pod for SegmentCommand64<E>

source§

impl<E: Endian> Pod for SourceVersionCommand<E>

source§

impl<E: Endian> Pod for SubClientCommand<E>

source§

impl<E: Endian> Pod for SubFrameworkCommand<E>

source§

impl<E: Endian> Pod for SubLibraryCommand<E>

source§

impl<E: Endian> Pod for SubUmbrellaCommand<E>

source§

impl<E: Endian> Pod for SymsegCommand<E>

source§

impl<E: Endian> Pod for SymtabCommand<E>

source§

impl<E: Endian> Pod for ThreadCommand<E>

source§

impl<E: Endian> Pod for TwolevelHint<E>

source§

impl<E: Endian> Pod for TwolevelHintsCommand<E>

source§

impl<E: Endian> Pod for UuidCommand<E>

source§

impl<E: Endian> Pod for VersionMinCommand<E>