llvm_sys::object

Enum 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.