pub enum StandardBuiltinType {
Show 31 variants Void, Wchar, Bool, Char, SignedChar, UnsignedChar, Short, UnsignedShort, Int, UnsignedInt, Long, UnsignedLong, LongLong, UnsignedLongLong, Int128, Uint128, Float, Double, LongDouble, Float128, Ellipsis, DecimalFloat64, DecimalFloat128, DecimalFloat32, DecimalFloat16, Char32, Char16, Char8, Auto, Decltype, Nullptr,
}
Expand description

A one of the standard variants of the production.

<builtin-type> ::= v  # void
               ::= w  # wchar_t
               ::= b  # bool
               ::= c  # char
               ::= a  # signed char
               ::= h  # unsigned char
               ::= s  # short
               ::= t  # unsigned short
               ::= i  # int
               ::= j  # unsigned int
               ::= l  # long
               ::= m  # unsigned long
               ::= x  # long long, __int64
               ::= y  # unsigned long long, __int64
               ::= n  # __int128
               ::= o  # unsigned __int128
               ::= f  # float
               ::= d  # double
               ::= e  # long double, __float80
               ::= g  # __float128
               ::= z  # ellipsis
               ::= Dd # IEEE 754r decimal floating point (64 bits)
               ::= De # IEEE 754r decimal floating point (128 bits)
               ::= Df # IEEE 754r decimal floating point (32 bits)
               ::= Dh # IEEE 754r half-precision floating point (16 bits)
               ::= Di # char32_t
               ::= Ds # char16_t
               ::= Du # char8_t
               ::= Da # auto
               ::= Dc # decltype(auto)
               ::= Dn # std::nullptr_t (i.e., decltype(nullptr))

Variants

Void

void

Wchar

wchar_t

Bool

bool

Char

char

SignedChar

signed char

UnsignedChar

unsigned char

Short

short

UnsignedShort

unsigned short

Int

int

UnsignedInt

unsigned int

Long

long

UnsignedLong

unsigned long

LongLong

long long

UnsignedLongLong

unsigned long long

Int128

__int128

Uint128

unsigned __int128

Float

float

Double

double

LongDouble

long double

Float128

__float128

Ellipsis

DecimalFloat64

decimal64

DecimalFloat128

decimal128

DecimalFloat32

decimal32

DecimalFloat16

half

Char32

char32_t

Char16

char16_t

Char8

char8_t

Auto

auto

Decltype

decltype(auto)

Nullptr

std::nullptr_t

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

Returns the argument unchanged.

Calls U::from(self).

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

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.