Struct glsl::syntax::StructFieldSpecifier [−][src]
pub struct StructFieldSpecifier { pub qualifier: Option<TypeQualifier>, pub ty: TypeSpecifier, pub identifiers: NonEmpty<ArrayedIdentifier>, }
Struct field specifier. Used to add fields to struct specifiers.
Fields
qualifier: Option<TypeQualifier>
ty: TypeSpecifier
identifiers: NonEmpty<ArrayedIdentifier>
Implementations
impl StructFieldSpecifier
[src]
impl StructFieldSpecifier
[src]pub fn new<A, T>(identifier: A, ty: T) -> Self where
A: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
[src]
A: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
Create a struct field.
pub fn new_many<I>(identifiers: I, ty: TypeSpecifier) -> Self where
I: IntoIterator<Item = ArrayedIdentifier>,
[src]
I: IntoIterator<Item = ArrayedIdentifier>,
Create a list of struct fields that all have the same type.
Trait Implementations
impl Clone for StructFieldSpecifier
[src]
impl Clone for StructFieldSpecifier
[src]fn clone(&self) -> StructFieldSpecifier
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Host for StructFieldSpecifier
[src]
impl Host for StructFieldSpecifier
[src]impl Parse for StructFieldSpecifier
[src]
impl Parse for StructFieldSpecifier
[src]impl PartialEq<StructFieldSpecifier> for StructFieldSpecifier
[src]
impl PartialEq<StructFieldSpecifier> for StructFieldSpecifier
[src]