Enum glsl_lang::ast::TypeSpecifierNonArrayData

source ·
pub enum TypeSpecifierNonArrayData {
Show 151 variants Void, Bool, Int, UInt, Float, Double, Vec2, Vec3, Vec4, DVec2, DVec3, DVec4, BVec2, BVec3, BVec4, IVec2, IVec3, IVec4, UVec2, UVec3, UVec4, Mat2, Mat3, Mat4, Mat22, Mat23, Mat24, Mat32, Mat33, Mat34, Mat42, Mat43, Mat44, DMat2, DMat3, DMat4, DMat22, DMat23, DMat24, DMat32, DMat33, DMat34, DMat42, DMat43, DMat44, Sampler1D, Image1D, Sampler2D, Image2D, Sampler3D, Image3D, SamplerCube, ImageCube, Sampler2DRect, Image2DRect, Sampler1DArray, Image1DArray, Sampler2DArray, Image2DArray, SamplerBuffer, ImageBuffer, Sampler2DMs, Image2DMs, Sampler2DMsArray, Image2DMsArray, SamplerCubeArray, ImageCubeArray, Sampler1DShadow, Sampler2DShadow, Sampler2DRectShadow, Sampler1DArrayShadow, Sampler2DArrayShadow, SamplerCubeShadow, SamplerCubeArrayShadow, ISampler1D, IImage1D, ISampler2D, IImage2D, ISampler3D, IImage3D, ISamplerCube, IImageCube, ISampler2DRect, IImage2DRect, ISampler1DArray, IImage1DArray, ISampler2DArray, IImage2DArray, ISamplerBuffer, IImageBuffer, ISampler2DMs, IImage2DMs, ISampler2DMsArray, IImage2DMsArray, ISamplerCubeArray, IImageCubeArray, AtomicUInt, USampler1D, UImage1D, USampler2D, UImage2D, USampler3D, UImage3D, USamplerCube, UImageCube, USampler2DRect, UImage2DRect, USampler1DArray, UImage1DArray, USampler2DArray, UImage2DArray, USamplerBuffer, UImageBuffer, USampler2DMs, UImage2DMs, USampler2DMsArray, UImage2DMsArray, USamplerCubeArray, UImageCubeArray, Texture1D, Texture2D, Texture3D, TextureCube, Texture2DRect, Texture1DArray, Texture2DArray, TextureBuffer, Texture2DMs, Texture2DMsArray, TextureCubeArray, ITexture1D, ITexture2D, ITexture3D, ITextureCube, ITexture2DRect, ITexture1DArray, ITexture2DArray, ITextureBuffer, ITexture2DMs, ITexture2DMsArray, ITextureCubeArray, Sampler, SamplerShadow, SubpassInput, ISubpassInput, USubpassInput, SubpassInputMs, ISubpassInputMs, USubpassInputMs, Struct(Node<StructSpecifierData>), TypeName(Node<TypeNameData>),
}
Expand description

Type specifier (non-array).

Variants§

§

Void

void type specifier

§

Bool

bool type specifier

§

Int

int type specifier

§

UInt

uint type specifier

§

Float

float type specifier

§

Double

double type specifier

§

Vec2

vec2 type specifier

§

Vec3

vec3 type specifier

§

Vec4

vec4 type specifier

§

DVec2

dvec2 type specifier

§

DVec3

dvec3 type specifier

§

DVec4

dvec4 type specifier

§

BVec2

bvec2 type specifier

§

BVec3

bvec3 type specifier

§

BVec4

bvec4 type specifier

§

IVec2

ivec2 type specifier

§

IVec3

ivec3 type specifier

§

IVec4

ivec4 type specifier

§

UVec2

uvec2 type specifier

§

UVec3

uvec3 type specifier

§

UVec4

uvec4 type specifier

§

Mat2

mat2 type specifier

§

Mat3

mat3 type specifier

§

Mat4

mat4 type specifier

§

Mat22

mat2x2 type specifier

§

Mat23

mat2x3 type specifier

§

Mat24

mat2x4 type specifier

§

Mat32

mat3x2 type specifier

§

Mat33

mat3x3 type specifier

§

Mat34

mat3x4 type specifier

§

Mat42

mat4x2 type specifier

§

Mat43

mat4x3 type specifier

§

Mat44

mat4x4 type specifier

§

DMat2

dmat2 type specifier

§

DMat3

dmat3 type specifier

§

DMat4

dmat4 type specifier

§

DMat22

dmat2x2 type specifier

§

DMat23

dmat2x3 type specifier

§

DMat24

dmat2x4 type specifier

§

DMat32

dmat3x2 type specifier

§

DMat33

dmat3x3 type specifier

§

DMat34

dmat3x4 type specifier

§

DMat42

dmat4x2 type specifier

§

DMat43

dmat4x3 type specifier

§

DMat44

dmat4x4 type specifier

§

Sampler1D

sampler1D type specifier

§

Image1D

image1D type specifier

§

Sampler2D

sampler2D type specifier

§

Image2D

image2D type specifier

§

Sampler3D

sampler3D type specifier

§

Image3D

image3D type specifier

§

SamplerCube

samplerCube type specifier

§

ImageCube

imageCube type specifier

§

Sampler2DRect

sampler2DRect type specifier

§

Image2DRect

image2DRect type specifier

§

Sampler1DArray

sampler1DArray type specifier

§

Image1DArray

image1DArray type specifier

§

Sampler2DArray

sampler2DArray type specifier

§

Image2DArray

image2DArray type specifier

§

SamplerBuffer

samplerBuffer type specifier

§

ImageBuffer

imageBuffer type specifier

§

Sampler2DMs

sampler2DMS type specifier

§

Image2DMs

image2DMS type specifier

§

Sampler2DMsArray

sampler2DMSArray type specifier

§

Image2DMsArray

image2DMSArray type specifier

§

SamplerCubeArray

samplerCubeArray type specifier

§

ImageCubeArray

imageCubeArray type specifier

§

Sampler1DShadow

sampler1DShadow type specifier

§

Sampler2DShadow

sampler2DShadow type specifier

§

Sampler2DRectShadow

sampler2DRectShadow type specifier

§

Sampler1DArrayShadow

sampler1DArrayShadow type specifier

§

Sampler2DArrayShadow

sampler2DArrayShadow type specifier

§

SamplerCubeShadow

samplerCubeShadow type specifier

§

SamplerCubeArrayShadow

samplerCubeArrayShadow type specifier

§

ISampler1D

isampler1D type specifier

§

IImage1D

iimage1D type specifier

§

ISampler2D

isampler2D type specifier

§

IImage2D

iimage2D type specifier

§

ISampler3D

isampler3D type specifier

§

IImage3D

iimage3D type specifier

§

ISamplerCube

isamplerCube type specifier

§

IImageCube

iimageCube type specifier

§

ISampler2DRect

isampler2DRect type specifier

§

IImage2DRect

iimage2DRect type specifier

§

ISampler1DArray

isampler1DArray type specifier

§

IImage1DArray

iimage1DArray type specifier

§

ISampler2DArray

isampler2DArray type specifier

§

IImage2DArray

iimage2DArray type specifier

§

ISamplerBuffer

isamplerBuffer type specifier

§

IImageBuffer

iimageBuffer type specifier

§

ISampler2DMs

isampler2DMS type specifier

§

IImage2DMs

iimage2DMS type specifier

§

ISampler2DMsArray

isampler2DMSArray type specifier

§

IImage2DMsArray

iimage2DMSArray type specifier

§

ISamplerCubeArray

isamplerCubeArray type specifier

§

IImageCubeArray

iimageCubeArray type specifier

§

AtomicUInt

atomic_uint type specifier

§

USampler1D

usampler1D type specifier

§

UImage1D

uimage1D type specifier

§

USampler2D

usampler2D type specifier

§

UImage2D

uimage2D type specifier

§

USampler3D

usampler3D type specifier

§

UImage3D

uimage3D type specifier

§

USamplerCube

usamplerCube type specifier

§

UImageCube

uimageCube type specifier

§

USampler2DRect

usampler2DRect type specifier

§

UImage2DRect

uimage2DRect type specifier

§

USampler1DArray

usampler1DArray type specifier

§

UImage1DArray

uimage1DArray type specifier

§

USampler2DArray

usampler2DArray type specifier

§

UImage2DArray

uimage2DArray type specifier

§

USamplerBuffer

usamplerBuffer type specifier

§

UImageBuffer

uimageBuffer type specifier

§

USampler2DMs

usampler2DMS type specifier

§

UImage2DMs

uimage2DMS type specifier

§

USampler2DMsArray

usampler2DMSArray type specifier

§

UImage2DMsArray

uimage2DMSArray type specifier

§

USamplerCubeArray

usamplerCubeArray type specifier

§

UImageCubeArray

uimageCubeArray type specifier

§

Texture1D

texture1D type specifier

§

Texture2D

texture2D type specifier

§

Texture3D

texture3D type specifier

§

TextureCube

textureCube type specifier

§

Texture2DRect

texture2DRect type specifier

§

Texture1DArray

texture1DArray type specifier

§

Texture2DArray

texture2DArray type specifier

§

TextureBuffer

textureBuffer type specifier

§

Texture2DMs

texture2DMs type specifier

§

Texture2DMsArray

texture2DMsArray type specifier

§

TextureCubeArray

textureCubeArray type specifier

§

ITexture1D

itexture1D type specifier

§

ITexture2D

itexture2D type specifier

§

ITexture3D

itexture3D type specifier

§

ITextureCube

itextureCube type specifier

§

ITexture2DRect

itexture2DRect type specifier

§

ITexture1DArray

itexture1DArray type specifier

§

ITexture2DArray

itexture2DArray type specifier

§

ITextureBuffer

itextureBuffer type specifier

§

ITexture2DMs

itexture2DMs type specifier

§

ITexture2DMsArray

itexture2DMsArray type specifier

§

ITextureCubeArray

itextureCubeArray type specifier

§

Sampler

sampler type specifier

§

SamplerShadow

samplerShadow type specifier

§

SubpassInput

subpassInput type specifier

§

ISubpassInput

isubpassInput type specifier

§

USubpassInput

usubpassInput type specifier

§

SubpassInputMs

subpassInputMs type specifier

§

ISubpassInputMs

isubpassInputMs type specifier

§

USubpassInputMs

usubpassInputMs type specifier

§

Struct(Node<StructSpecifierData>)

struct type specifier

§

TypeName(Node<TypeNameData>)

Raw type name

Trait Implementations§

source§

impl Clone for TypeSpecifierNonArrayData

source§

fn clone(&self) -> TypeSpecifierNonArrayData

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 TypeSpecifierNonArrayData

source§

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

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

impl<'de> Deserialize<'de> for TypeSpecifierNonArrayData

source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TypeSpecifierNonArrayData, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Node<TypeNameData>> for TypeSpecifierNonArrayData

source§

fn from(tn: Node<TypeNameData>) -> TypeSpecifierNonArrayData

Converts to this type from the input type.
source§

impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierNonArrayData

source§

fn from(node: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierNonArrayData

Converts to this type from the input type.
source§

impl From<TypeSpecifierNonArrayData> for FullySpecifiedTypeData

source§

fn from(ty: TypeSpecifierNonArrayData) -> FullySpecifiedTypeData

Converts to this type from the input type.
source§

impl From<TypeSpecifierNonArrayData> for TypeSpecifierData

source§

fn from(ty: TypeSpecifierNonArrayData) -> TypeSpecifierData

Converts to this type from the input type.
source§

impl NodeContent for TypeSpecifierNonArrayData

source§

fn into_node<T>(self) -> Node<T>
where T: From<Self> + NodeContent,

Convert the contents into a node
source§

fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>

Add span information to a syntax node
source§

impl NodeContentDisplay for TypeSpecifierNonArrayData

source§

fn name() -> Option<&'static str>

Name of the node Read more
source§

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

Display extra information for the node Read more
source§

fn display_children( &self, level: usize, f: &mut Formatter<'_>, ) -> Result<(), Error>

Display the node’s children Read more
source§

impl PartialEq for TypeSpecifierNonArrayData

source§

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

source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for TypeSpecifierNonArrayData

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> NodeDisplay for T

source§

fn name() -> Option<&'static str>

Name of the syntax node’s type
source§

fn start(&self) -> Option<TextSize>

Starting position of the node
source§

fn end(&self) -> Option<TextSize>

Ending position of the node
source§

fn source_id(&self) -> Option<FileId>

Source id of the node
source§

fn display(&self) -> NodeDisplayWrapper<'_, T>

Obtain a display wrapper for the current node
source§

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

Display extra information for the node Read more
source§

fn display_children( &self, level: usize, f: &mut Formatter<'_>, ) -> Result<(), Error>

Display the node’s children Read more
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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,