Enum llvm_sys::object::LLVMBinaryType

source ·
#[repr(C)]
pub enum LLVMBinaryType {
Show 16 variants LLVMBinaryTypeArchive = 0, LLVMBinaryTypeMachOUniversalBinary = 1, LLVMBinaryTypeCOFFImportFile = 2, LLVMBinaryTypeIR = 3, LLVMBinaryTypeWinRes = 4, LLVMBinaryTypeCOFF = 5, LLVMBinaryTypeELF32L = 6, LLVMBinaryTypeELF32B = 7, LLVMBinaryTypeELF64L = 8, LLVMBinaryTypeELF64B = 9, LLVMBinaryTypeMachO32L = 10, LLVMBinaryTypeMachO32B = 11, LLVMBinaryTypeMachO64L = 12, LLVMBinaryTypeMachO64B = 13, LLVMBinaryTypeWasm = 14, LLVMBinaryTypeOffload = 15,
}

Variants§

§

LLVMBinaryTypeArchive = 0

Archive file

§

LLVMBinaryTypeMachOUniversalBinary = 1

Mach-O Universal Binary file

§

LLVMBinaryTypeCOFFImportFile = 2

COFF Import file

§

LLVMBinaryTypeIR = 3

LLVM IR

§

LLVMBinaryTypeWinRes = 4

Windows resource (.res) file

§

LLVMBinaryTypeCOFF = 5

COFF Object file

§

LLVMBinaryTypeELF32L = 6

ELF 32-bit, little endian

§

LLVMBinaryTypeELF32B = 7

ELF 32-bit, big endian

§

LLVMBinaryTypeELF64L = 8

ELF 64-bit, little endian

§

LLVMBinaryTypeELF64B = 9

ELF 64-bit, big endian

§

LLVMBinaryTypeMachO32L = 10

MachO 32-bit, little endian

§

LLVMBinaryTypeMachO32B = 11

MachO 32-bit, big endian

§

LLVMBinaryTypeMachO64L = 12

MachO 64-bit, little endian

§

LLVMBinaryTypeMachO64B = 13

MachO 64-bit, big endian

§

LLVMBinaryTypeWasm = 14

Web assembly

§

LLVMBinaryTypeOffload = 15

Offloading fatbinary

Trait Implementations§

source§

impl Debug for LLVMBinaryType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.