StandardBuiltinType

Enum StandardBuiltinType 

Source
pub enum StandardBuiltinType {
Show 56 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, BFloat16, Char32, Char16, Char8, Auto, Decltype, Nullptr, AccumShort, AccumUShort, Accum, AccumUnsigned, AccumLong, AccumULong, FractShort, FractUShort, Fract, FractUnsigned, FractLong, FractULong, SatAccumShort, SatAccumUShort, SatAccum, SatAccumUnsigned, SatAccumLong, SatAccumULong, SatFractShort, SatFractUShort, SatFract, SatFractUnsigned, SatFractLong, SatFractULong,
}
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)
               ::= DF16b # C++23 std::bfloat16_t
               ::= Di # char32_t
               ::= Ds # char16_t
               ::= Du # char8_t
               ::= Da # auto
               ::= Dc # decltype(auto)
               ::= Dn # std::nullptr_t (i.e., decltype(nullptr))
               ::= [DS] DA  # N1169 fixed-point [_Sat] T _Accum
               ::= [DS] DR  # N1169 fixed-point [_Sat] T _Fract

 <fixed-point-size> ::= s # short
                    ::= t # unsigned short
                    ::= i # plain
                    ::= j # unsigned
                    ::= l # long
                    ::= m # unsigned long

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

§

BFloat16

std::bfloat16_t

§

Char32

char32_t

§

Char16

char16_t

§

Char8

char8_t

§

Auto

auto

§

Decltype

decltype(auto)

§

Nullptr

std::nullptr_t

§

AccumShort

short _Accum

§

AccumUShort

unsigned short _Accum

§

Accum

_Accum

§

AccumUnsigned

unsigned _Accum

§

AccumLong

long _Accum

§

AccumULong

unsigned long _Accum

§

FractShort

short _Fract

§

FractUShort

unsigned short _Fract

§

Fract

_Fract

§

FractUnsigned

unsigned _Fract

§

FractLong

long _Fract

§

FractULong

unsigned long _Fract

§

SatAccumShort

_Sat short _Accum

§

SatAccumUShort

_Sat unsigned short _Accum

§

SatAccum

_Sat _Accum

§

SatAccumUnsigned

_Sat unsigned _Accum

§

SatAccumLong

_Sat long _Accum

§

SatAccumULong

_Sat unsigned long _Accum

§

SatFractShort

_Sat short _Fract

§

SatFractUShort

_Sat unsigned short _Fract

§

SatFract

_Sat _Fract

§

SatFractUnsigned

_Sat unsigned _Fract

§

SatFractLong

_Sat long _Fract

§

SatFractULong

_Sat unsigned long _Fract

Trait Implementations§

Source§

impl Clone for StandardBuiltinType

Source§

fn clone(&self) -> StandardBuiltinType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StandardBuiltinType

Source§

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

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

impl PartialEq for StandardBuiltinType

Source§

fn eq(&self, other: &StandardBuiltinType) -> 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 Eq for StandardBuiltinType

Source§

impl StructuralPartialEq for StandardBuiltinType

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.