Enum TypeCode

Source
#[repr(u64)]
pub enum TypeCode {
Show 25 variants NumEntry = 1, Void = 2, Float = 3, Double = 4, Label = 5, Opaque = 6, Integer = 7, Pointer = 8, FunctionOld = 9, Half = 10, Array = 11, Vector = 12, X86Fp80 = 13, Fp128 = 14, PpcFp128 = 15, Metadata = 16, X86Mmx = 17, StructAnon = 18, StructName = 19, StructNamed = 20, Function = 21, Token = 22, BFloat = 23, X86Amx = 24, OpaquePointer = 25,
}
Expand description

Codes for each record in TYPE_BLOCK (i.e., TYPE_BLOCK_ID_NEW).

Variants§

§

NumEntry = 1

TYPE_CODE_NUMENTRY: [numentries]

§

Void = 2

TYPE_CODE_VOID

§

Float = 3

TYPE_CODE_FLOAT

§

Double = 4

TYPE_CODE_DOUBLE

§

Label = 5

TYPE_CODE_LABEL

§

Opaque = 6

TYPE_CODE_OPAQUE

§

Integer = 7

TYPE_CODE_INTEGER: [width]

§

Pointer = 8

TYPE_CODE_POINTER: [pointee type]

§

FunctionOld = 9

TYPE_CODE_FUNCTION_OLD: [vararg, attrid, retty, paramty x N]

§

Half = 10

TYPE_CODE_HALF

§

Array = 11

TYPE_CODE_ARRAY: [numelts, eltty]

§

Vector = 12

TYPE_CODE_VECTOR: [numelts, eltty]

§

X86Fp80 = 13

TYPE_CODE_X86_FP80

§

Fp128 = 14

TYPE_CODE_FP128

§

PpcFp128 = 15

TYPE_CODE_PPC_FP128

§

Metadata = 16

TYPE_CODE_METADATA,

§

X86Mmx = 17

TYPE_CODE_X86_MMX

§

StructAnon = 18

TYPE_CODE_STRUCT_ANON: [ispacked, eltty x N]

§

StructName = 19

TYPE_CODE_STRUCT_NAME: [strchr x N]

§

StructNamed = 20

TYPE_CODE_STRUCT_NAMED: [ispacked, eltty x N]

§

Function = 21

TYPE_CODE_FUNCTION: [vararg, retty, paramty x N]

§

Token = 22

TYPE_CODE_TOKEN

§

BFloat = 23

TYPE_CODE_BFLOAT

§

X86Amx = 24

TYPE_CODE_X86_AMX

§

OpaquePointer = 25

TYPE_CODE_OPAQUE_POINTER: [addrspace]

Trait Implementations§

Source§

impl Debug for TypeCode

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<TypeCode> for u64

Source§

fn from(enum_value: TypeCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for TypeCode

Source§

fn eq(&self, other: &TypeCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u64> for TypeCode

Source§

type Error = TryFromPrimitiveError<TypeCode>

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

fn try_from(number: u64) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for TypeCode

Source§

const NAME: &'static str = "TypeCode"

Source§

type Primitive = u64

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl StructuralPartialEq for TypeCode

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.