[−][src]Enum glsl::syntax::Statement
Statement.
Variants
Compound(Box<CompoundStatement>)
Simple(Box<SimpleStatement>)
Methods
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 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]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Statement>,
[src]
T: IntoIterator<Item = Statement>,
Auto Trait Implementations
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
impl RefUnwindSafe for Statement
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,