Enum glsl_lang::ast::StatementData[][src]

pub enum StatementData {
    Declaration(Declaration),
    Expression(ExprStatement),
    Selection(SelectionStatement),
    Switch(SwitchStatement),
    CaseLabel(CaseLabel),
    Iteration(IterationStatement),
    Jump(JumpStatement),
    Compound(CompoundStatement),
}

Statement.

Variants

Declaration(Declaration)

Declaration

Expression(ExprStatement)

Expression statement

if/... statement

switch statement

CaseLabel(CaseLabel)

Switch statement case label

Iteration statement

Jump statement

Statement block

Implementations

impl StatementData[src]

pub fn declare_var<T, N, A, I>(
    ty: T,
    name: N,
    array_specifier: A,
    initializer: I
) -> Self where
    T: Into<FullySpecifiedType>,
    N: Into<IdentifierData>,
    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 Clone for StatementData[src]

impl Debug for StatementData[src]

impl NodeContent for StatementData[src]

impl NodeContentDisplay for StatementData[src]

impl NodeContentEq for StatementData[src]

impl PartialEq<StatementData> for StatementData[src]

impl StructuralPartialEq for StatementData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Err = Infallible

impl<T> NodeDisplay for T where
    T: NodeContentDisplay
[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.