Enum repc::layout::BuiltinType[][src]

pub enum BuiltinType {
    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,
}

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

impl Clone for BuiltinType[src]

impl Copy for BuiltinType[src]

impl Debug for BuiltinType[src]

impl Eq for BuiltinType[src]

impl PartialEq<BuiltinType> for BuiltinType[src]

impl StructuralEq for BuiltinType[src]

impl StructuralPartialEq for BuiltinType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.