Enum glsl::syntax::Statement [−][src]
pub enum Statement { Compound(Box<CompoundStatement>), Simple(Box<SimpleStatement>), }
Statement.
Variants
Compound(Box<CompoundStatement>)
Simple(Box<SimpleStatement>)
Implementations
impl Statement
[src]
impl Statement
[src]pub fn new_case<C, S>(case: C, statements: S) -> Self where
C: Into<CaseLabel>,
S: IntoIterator<Item = Statement>,
[src]
C: Into<CaseLabel>,
S: IntoIterator<Item = Statement>,
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]
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>>,
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 FromIterator<Statement> for CompoundStatement
[src]
impl FromIterator<Statement> for CompoundStatement
[src]fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Statement>,
[src]
T: IntoIterator<Item = Statement>,