Enum glsl_lang_pp::types::token::TypeName

source ·
pub enum TypeName {
Show 162 variants VOID, INT, BOOL, FLOAT, DOUBLE, VEC2, VEC3, VEC4, IVEC2, IVEC3, IVEC4, BVEC2, BVEC3, BVEC4, UINT, ATOMIC_UINT, UVEC2, UVEC3, UVEC4, DVEC2, DVEC3, DVEC4, MAT2, MAT3, MAT4, MAT2X2, MAT2X3, MAT2X4, MAT3X2, MAT3X3, MAT3X4, MAT4X2, MAT4X3, MAT4X4, DMAT2, DMAT3, DMAT4, DMAT2X2, DMAT2X3, DMAT2X4, DMAT3X2, DMAT3X3, DMAT3X4, DMAT4X2, DMAT4X3, DMAT4X4, SAMPLER1D, SAMPLER1DSHADOW, SAMPLER1DARRAY, SAMPLER1DARRAYSHADOW, ISAMPLER1D, ISAMPLER1DARRAY, USAMPLER1D, USAMPLER1DARRAY, SAMPLER2D, SAMPLER2DSHADOW, SAMPLER2DARRAY, SAMPLER2DARRAYSHADOW, ISAMPLER2D, ISAMPLER2DARRAY, USAMPLER2D, USAMPLER2DARRAY, SAMPLER2DRECT, SAMPLER2DRECTSHADOW, ISAMPLER2DRECT, USAMPLER2DRECT, SAMPLER2DMS, ISAMPLER2DMS, USAMPLER2DMS, SAMPLER2DMSARRAY, ISAMPLER2DMSARRAY, USAMPLER2DMSARRAY, SAMPLER3D, ISAMPLER3D, USAMPLER3D, SAMPLERCUBE, SAMPLERCUBESHADOW, ISAMPLERCUBE, USAMPLERCUBE, SAMPLERCUBEARRAY, SAMPLERCUBEARRAYSHADOW, ISAMPLERCUBEARRAY, USAMPLERCUBEARRAY, SAMPLERBUFFER, ISAMPLERBUFFER, USAMPLERBUFFER, IMAGE1D, IIMAGE1D, UIMAGE1D, IMAGE1DARRAY, IIMAGE1DARRAY, UIMAGE1DARRAY, IMAGE2D, IIMAGE2D, UIMAGE2D, IMAGE2DARRAY, IIMAGE2DARRAY, UIMAGE2DARRAY, IMAGE2DRECT, IIMAGE2DRECT, UIMAGE2DRECT, IMAGE2DMS, IIMAGE2DMS, UIMAGE2DMS, IMAGE2DMSARRAY, IIMAGE2DMSARRAY, UIMAGE2DMSARRAY, IMAGE3D, IIMAGE3D, UIMAGE3D, IMAGECUBE, IIMAGECUBE, UIMAGECUBE, IMAGECUBEARRAY, IIMAGECUBEARRAY, UIMAGECUBEARRAY, IMAGEBUFFER, IIMAGEBUFFER, UIMAGEBUFFER, TEXTURE1D, TEXTURE1DARRAY, ITEXTURE1D, ITEXTURE1DARRAY, UTEXTURE1D, UTEXTURE1DARRAY, TEXTURE2D, TEXTURE2DARRAY, ITEXTURE2D, ITEXTURE2DARRAY, UTEXTURE2D, UTEXTURE2DARRAY, TEXTURE2DRECT, ITEXTURE2DRECT, UTEXTURE2DRECT, TEXTURE2DMS, ITEXTURE2DMS, UTEXTURE2DMS, TEXTURE2DMSARRAY, ITEXTURE2DMSARRAY, UTEXTURE2DMSARRAY, TEXTURE3D, ITEXTURE3D, UTEXTURE3D, TEXTURECUBE, ITEXTURECUBE, UTEXTURECUBE, TEXTURECUBEARRAY, ITEXTURECUBEARRAY, UTEXTURECUBEARRAY, TEXTUREBUFFER, ITEXTUREBUFFER, UTEXTUREBUFFER, SAMPLER, SAMPLERSHADOW, SUBPASSINPUT, ISUBPASSINPUT, USUBPASSINPUT, SUBPASSINPUTMS, ISUBPASSINPUTMS, USUBPASSINPUTMS, RESERVED(TypeNameAtom), OTHER(TypeNameAtom),
}

Variants§

§

VOID

“void”

§

INT

“int”

§

BOOL

“bool”

§

FLOAT

“float”

§

DOUBLE

“double”

§

VEC2

“vec2”

§

VEC3

“vec3”

§

VEC4

“vec4”

§

IVEC2

“ivec2”

§

IVEC3

“ivec3”

§

IVEC4

“ivec4”

§

BVEC2

“bvec2”

§

BVEC3

“bvec3”

§

BVEC4

“bvec4”

§

UINT

“uint”

§

ATOMIC_UINT

“atomic_uint”

§

UVEC2

“uvec2”

§

UVEC3

“uvec3”

§

UVEC4

“uvec4”

§

DVEC2

“dvec2”

§

DVEC3

“dvec3”

§

DVEC4

“dvec4”

§

MAT2

“mat2”

§

MAT3

“mat3”

§

MAT4

“mat4”

§

MAT2X2

“mat2x2”

§

MAT2X3

“mat2x3”

§

MAT2X4

“mat2x4”

§

MAT3X2

“mat3x2”

§

MAT3X3

“mat3x3”

§

MAT3X4

“mat3x4”

§

MAT4X2

“mat4x2”

§

MAT4X3

“mat4x3”

§

MAT4X4

“mat4x4”

§

DMAT2

“dmat2”

§

DMAT3

“dmat3”

§

DMAT4

“dmat4”

§

DMAT2X2

“dmat2x2”

§

DMAT2X3

“dmat2x3”

§

DMAT2X4

“dmat2x4”

§

DMAT3X2

“dmat3x2”

§

DMAT3X3

“dmat3x3”

§

DMAT3X4

“dmat3x4”

§

DMAT4X2

“dmat4x2”

§

DMAT4X3

“dmat4x3”

§

DMAT4X4

“dmat4x4”

§

SAMPLER1D

“sampler1D”

§

SAMPLER1DSHADOW

“sampler1DShadow”

§

SAMPLER1DARRAY

“sampler1DArray”

§

SAMPLER1DARRAYSHADOW

“sampler1DArrayShadow”

§

ISAMPLER1D

“isampler1D”

§

ISAMPLER1DARRAY

“isampler1DArray”

§

USAMPLER1D

“usampler1D”

§

USAMPLER1DARRAY

“usampler1DArray”

§

SAMPLER2D

“sampler2D”

§

SAMPLER2DSHADOW

“sampler2DShadow”

§

SAMPLER2DARRAY

“sampler2DArray”

§

SAMPLER2DARRAYSHADOW

“sampler2DArrayShadow”

§

ISAMPLER2D

“isampler2D”

§

ISAMPLER2DARRAY

“isampler2DArray”

§

USAMPLER2D

“usampler2D”

§

USAMPLER2DARRAY

“usampler2DArray”

§

SAMPLER2DRECT

“sampler2DRect”

§

SAMPLER2DRECTSHADOW

“sampler2DRectShadow”

§

ISAMPLER2DRECT

“isampler2DRect”

§

USAMPLER2DRECT

“usampler2DRect”

§

SAMPLER2DMS

“sampler2DMS”

§

ISAMPLER2DMS

“isampler2DMS”

§

USAMPLER2DMS

“usampler2DMS”

§

SAMPLER2DMSARRAY

“sampler2DMSArray”

§

ISAMPLER2DMSARRAY

“isampler2DMSArray”

§

USAMPLER2DMSARRAY

“usampler2DMSArray”

§

SAMPLER3D

“sampler3D”

§

ISAMPLER3D

“isampler3D”

§

USAMPLER3D

“usampler3D”

§

SAMPLERCUBE

“samplerCube”

§

SAMPLERCUBESHADOW

“samplerCubeShadow”

§

ISAMPLERCUBE

“isamplerCube”

§

USAMPLERCUBE

“usamplerCube”

§

SAMPLERCUBEARRAY

“samplerCubeArray”

§

SAMPLERCUBEARRAYSHADOW

“samplerCubeArrayShadow”

§

ISAMPLERCUBEARRAY

“isamplerCubeArray”

§

USAMPLERCUBEARRAY

“usamplerCubeArray”

§

SAMPLERBUFFER

“samplerBuffer”

§

ISAMPLERBUFFER

“isamplerBuffer”

§

USAMPLERBUFFER

“usamplerBuffer”

§

IMAGE1D

“image1D”

§

IIMAGE1D

“iimage1D”

§

UIMAGE1D

“uimage1D”

§

IMAGE1DARRAY

“image1DArray”

§

IIMAGE1DARRAY

“iimage1DArray”

§

UIMAGE1DARRAY

“uimage1DArray”

§

IMAGE2D

“image2D”

§

IIMAGE2D

“iimage2D”

§

UIMAGE2D

“uimage2D”

§

IMAGE2DARRAY

“image2DArray”

§

IIMAGE2DARRAY

“iimage2DArray”

§

UIMAGE2DARRAY

“uimage2DArray”

§

IMAGE2DRECT

“image2DRect”

§

IIMAGE2DRECT

“iimage2DRect”

§

UIMAGE2DRECT

“uimage2DRect”

§

IMAGE2DMS

“image2DMS”

§

IIMAGE2DMS

“iimage2DMS”

§

UIMAGE2DMS

“uimage2DMS”

§

IMAGE2DMSARRAY

“image2DMSArray”

§

IIMAGE2DMSARRAY

“iimage2DMSArray”

§

UIMAGE2DMSARRAY

“uimage2DMSArray”

§

IMAGE3D

“image3D”

§

IIMAGE3D

“iimage3D”

§

UIMAGE3D

“uimage3D”

§

IMAGECUBE

“imageCube”

§

IIMAGECUBE

“iimageCube”

§

UIMAGECUBE

“uimageCube”

§

IMAGECUBEARRAY

“imageCubeArray”

§

IIMAGECUBEARRAY

“iimageCubeArray”

§

UIMAGECUBEARRAY

“uimageCubeArray”

§

IMAGEBUFFER

“imageBuffer”

§

IIMAGEBUFFER

“iimageBuffer”

§

UIMAGEBUFFER

“uimageBuffer”

§

TEXTURE1D

“texture1D”

§

TEXTURE1DARRAY

“texture1DArray”

§

ITEXTURE1D

“itexture1D”

§

ITEXTURE1DARRAY

“itexture1DArray”

§

UTEXTURE1D

“utexture1D”

§

UTEXTURE1DARRAY

“utexture1DArray”

§

TEXTURE2D

“texture2D”

§

TEXTURE2DARRAY

“texture2DArray”

§

ITEXTURE2D

“itexture2D”

§

ITEXTURE2DARRAY

“itexture2DArray”

§

UTEXTURE2D

“utexture2D”

§

UTEXTURE2DARRAY

“utexture2DArray”

§

TEXTURE2DRECT

“texture2DRect”

§

ITEXTURE2DRECT

“itexture2DRect”

§

UTEXTURE2DRECT

“utexture2DRect”

§

TEXTURE2DMS

“texture2DMS”

§

ITEXTURE2DMS

“itexture2DMS”

§

UTEXTURE2DMS

“utexture2DMS”

§

TEXTURE2DMSARRAY

“texture2DMSArray”

§

ITEXTURE2DMSARRAY

“itexture2DMSArray”

§

UTEXTURE2DMSARRAY

“utexture2DMSArray”

§

TEXTURE3D

“texture3D”

§

ITEXTURE3D

“itexture3D”

§

UTEXTURE3D

“utexture3D”

§

TEXTURECUBE

“textureCube”

§

ITEXTURECUBE

“itextureCube”

§

UTEXTURECUBE

“utextureCube”

§

TEXTURECUBEARRAY

“textureCubeArray”

§

ITEXTURECUBEARRAY

“itextureCubeArray”

§

UTEXTURECUBEARRAY

“utextureCubeArray”

§

TEXTUREBUFFER

“textureBuffer”

§

ITEXTUREBUFFER

“itextureBuffer”

§

UTEXTUREBUFFER

“utextureBuffer”

§

SAMPLER

“sampler”

§

SAMPLERSHADOW

“samplerShadow”

§

SUBPASSINPUT

“subpassInput”

§

ISUBPASSINPUT

“isubpassInput”

§

USUBPASSINPUT

“usubpassInput”

§

SUBPASSINPUTMS

“subpassInputMS”

§

ISUBPASSINPUTMS

“isubpassInputMS”

§

USUBPASSINPUTMS

“usubpassInputMS”

§

RESERVED(TypeNameAtom)

Reserved for future use

§

OTHER(TypeNameAtom)

Generic type name

Implementations§

source§

impl TypeName

source

fn gate( self, version_gate: bool, reserved_gate: bool, atom: TypeNameAtom, is_type_name: impl Fn(&TypeNameAtom) -> TypeNameState, ) -> Option<(Self, Option<TypeNameState>)>

source

pub(crate) fn parse( name: &str, version: u16, target_vulkan: bool, is_type_name: impl Fn(&TypeNameAtom) -> TypeNameState, ) -> Option<(Self, Option<TypeNameState>)>

Trait Implementations§

source§

impl Clone for TypeName

source§

fn clone(&self) -> TypeName

Returns a copy 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 TypeName

source§

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

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

impl Display for TypeName

source§

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

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

impl Hash for TypeName

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for TypeName

source§

fn cmp(&self, other: &TypeName) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for TypeName

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for TypeName

source§

fn partial_cmp(&self, other: &TypeName) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for TypeName

source§

impl StructuralPartialEq for TypeName

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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

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
§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.