Enum glsl::syntax::SelectionRestStatement
source · pub enum SelectionRestStatement {
Statement(Box<Statement>),
Else(Box<Statement>, Box<Statement>),
}
Expand description
Selection rest statement.
Variants§
Statement(Box<Statement>)
Body of the if.
Else(Box<Statement>, Box<Statement>)
The first argument is the body of the if, the rest is the next statement.
Trait Implementations§
source§impl Clone for SelectionRestStatement
impl Clone for SelectionRestStatement
source§fn clone(&self) -> SelectionRestStatement
fn clone(&self) -> SelectionRestStatement
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 SelectionRestStatement
impl Debug for SelectionRestStatement
source§impl Host for SelectionRestStatement
impl Host for SelectionRestStatement
source§impl HostMut for SelectionRestStatement
impl HostMut for SelectionRestStatement
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 PartialEq for SelectionRestStatement
impl PartialEq for SelectionRestStatement
source§fn eq(&self, other: &SelectionRestStatement) -> bool
fn eq(&self, other: &SelectionRestStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SelectionRestStatement
Auto Trait Implementations§
impl RefUnwindSafe for SelectionRestStatement
impl Send for SelectionRestStatement
impl Sync for SelectionRestStatement
impl Unpin for SelectionRestStatement
impl UnwindSafe for SelectionRestStatement
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