Enum repc_impl::layout::BuiltinType[][src]

pub enum BuiltinType {
Show 28 variants Unit, Bool, U8, U16, U32, U64, U128, I8, I16, I32, I64, I128, Char, SignedChar, UnsignedChar, Short, UnsignedShort, Int, UnsignedInt, Long, UnsignedLong, LongLong, UnsignedLongLong, F32, F64, Float, Double, Pointer,
}
Expand description

A builtin type.

This includes both builtin Rust and C types. The Rust types will be treated like the corresponding C types if possible. If the type does not exist on the target, the results might not be meaningful.

Variants

Unit

()

Bool

bool

U8

u8

U16

u16

U32

u32

U64

u64

U128

u128

I8

i8

I16

i16

I32

i32

I64

i64

I128

i128

Char

c_char

SignedChar

c_schar

UnsignedChar

c_uchar

Short

c_short

UnsignedShort

c_ushort

Int

c_int

UnsignedInt

c_uint

Long

c_long

UnsignedLong

c_ulong

LongLong

c_longlong

UnsignedLongLong

c_ulonglong

F32

f32

F64

f64

Float

c_float

Double

c_double

Pointer

*const T,*mut T, &T, &mut T for sized T; fn(), Option<fn()>, etc.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.