[][src]Struct glsl::syntax::StructFieldSpecifier

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: TypeSpecifieridentifiers: NonEmpty<ArrayedIdentifier>

Methods

impl StructFieldSpecifier[src]

pub fn new<A, T>(identifier: A, ty: T) -> Self where
    A: Into<ArrayedIdentifier>,
    T: Into<TypeSpecifier>, 
[src]

Create a struct field.

pub fn new_many<I>(identifiers: I, ty: TypeSpecifier) -> Self where
    I: IntoIterator<Item = ArrayedIdentifier>, 
[src]

Create a list of struct fields that all have the same type.

Trait Implementations

impl Parse for StructFieldSpecifier[src]

impl Host for StructFieldSpecifier[src]

impl Clone for StructFieldSpecifier[src]

impl PartialEq<StructFieldSpecifier> for StructFieldSpecifier[src]

impl Debug for StructFieldSpecifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]