Struct glsl::syntax::StructFieldSpecifier
source · pub struct StructFieldSpecifier {
pub qualifier: Option<TypeQualifier>,
pub ty: TypeSpecifier,
pub identifiers: NonEmpty<ArrayedIdentifier>,
}
Expand description
Struct field specifier. Used to add fields to struct specifiers.
Fields§
§qualifier: Option<TypeQualifier>
§ty: TypeSpecifier
§identifiers: NonEmpty<ArrayedIdentifier>
Implementations§
source§impl StructFieldSpecifier
impl StructFieldSpecifier
sourcepub fn new<A, T>(identifier: A, ty: T) -> Selfwhere
A: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
pub fn new<A, T>(identifier: A, ty: T) -> Selfwhere
A: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
Create a struct field.
sourcepub fn new_many<I>(identifiers: I, ty: TypeSpecifier) -> Selfwhere
I: IntoIterator<Item = ArrayedIdentifier>,
pub fn new_many<I>(identifiers: I, ty: TypeSpecifier) -> Selfwhere
I: IntoIterator<Item = ArrayedIdentifier>,
Create a list of struct fields that all have the same type.
Trait Implementations§
source§impl Clone for StructFieldSpecifier
impl Clone for StructFieldSpecifier
source§fn clone(&self) -> StructFieldSpecifier
fn clone(&self) -> StructFieldSpecifier
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 more