[][src]Enum glsl::syntax::Statement

pub enum Statement {
    Compound(Box<CompoundStatement>),
    Simple(Box<SimpleStatement>),
}

Statement.

Variants

Methods

impl Statement[src]

pub fn new_case<C, S>(case: C, statements: S) -> Self where
    C: Into<CaseLabel>,
    S: IntoIterator<Item = Statement>, 
[src]

Create a case-label sequence of nested statements.

pub fn declare_var<T, N, A, I>(
    ty: T,
    name: N,
    array_specifier: A,
    initializer: I
) -> Self where
    T: Into<FullySpecifiedType>,
    N: Into<Identifier>,
    A: Into<Option<ArraySpecifier>>,
    I: Into<Option<Initializer>>, 
[src]

Declare a new variable.

ty is the type of the variable, name the name of the binding to create, array_specifier an optional argument to make your binding an array and initializer

Trait Implementations

impl Parse for Statement[src]

impl Host for Statement[src]

impl Clone for Statement[src]

impl PartialEq<Statement> for Statement[src]

impl Debug for Statement[src]

impl StructuralPartialEq for Statement[src]

impl FromIterator<Statement> for CompoundStatement[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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