Enum glsl::syntax::IterationStatement
source · pub enum IterationStatement {
While(Condition, Box<Statement>),
DoWhile(Box<Statement>, Box<Expr>),
For(ForInitStatement, ForRestStatement, Box<Statement>),
}
Expand description
Iteration statement.
Variants§
While(Condition, Box<Statement>)
DoWhile(Box<Statement>, Box<Expr>)
For(ForInitStatement, ForRestStatement, Box<Statement>)
Trait Implementations§
source§impl Clone for IterationStatement
impl Clone for IterationStatement
source§fn clone(&self) -> IterationStatement
fn clone(&self) -> IterationStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IterationStatement
impl Debug for IterationStatement
source§impl Host for IterationStatement
impl Host for IterationStatement
source§impl HostMut for IterationStatement
impl HostMut for IterationStatement
source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
Visit an AST node.
source§impl Parse for IterationStatement
impl Parse for IterationStatement
source§impl PartialEq for IterationStatement
impl PartialEq for IterationStatement
source§fn eq(&self, other: &IterationStatement) -> bool
fn eq(&self, other: &IterationStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IterationStatement
Auto Trait Implementations§
impl RefUnwindSafe for IterationStatement
impl Send for IterationStatement
impl Sync for IterationStatement
impl Unpin for IterationStatement
impl UnwindSafe for IterationStatement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more