Struct glsl::syntax::TypeSpecifier
source · pub struct TypeSpecifier {
pub ty: TypeSpecifierNonArray,
pub array_specifier: Option<ArraySpecifier>,
}
Expand description
Type specifier.
Fields§
§ty: TypeSpecifierNonArray
§array_specifier: Option<ArraySpecifier>
Implementations§
source§impl TypeSpecifier
impl TypeSpecifier
pub fn new(ty: TypeSpecifierNonArray) -> Self
Trait Implementations§
source§impl Clone for TypeSpecifier
impl Clone for TypeSpecifier
source§fn clone(&self) -> TypeSpecifier
fn clone(&self) -> TypeSpecifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeSpecifier
impl Debug for TypeSpecifier
source§impl From<TypeSpecifierNonArray> for TypeSpecifier
impl From<TypeSpecifierNonArray> for TypeSpecifier
source§fn from(ty: TypeSpecifierNonArray) -> Self
fn from(ty: TypeSpecifierNonArray) -> Self
Converts to this type from the input type.