Struct glsl::syntax::SwitchStatement
source · pub struct SwitchStatement {
pub head: Box<Expr>,
pub body: Vec<Statement>,
}
Expand description
Switch statement.
Fields§
§head: Box<Expr>
§body: Vec<Statement>
Trait Implementations§
source§impl Clone for SwitchStatement
impl Clone for SwitchStatement
source§fn clone(&self) -> SwitchStatement
fn clone(&self) -> SwitchStatement
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 SwitchStatement
impl Debug for SwitchStatement
source§impl Host for SwitchStatement
impl Host for SwitchStatement
source§impl HostMut for SwitchStatement
impl HostMut for SwitchStatement
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 SwitchStatement
impl Parse for SwitchStatement
source§impl PartialEq for SwitchStatement
impl PartialEq for SwitchStatement
source§fn eq(&self, other: &SwitchStatement) -> bool
fn eq(&self, other: &SwitchStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SwitchStatement
Auto Trait Implementations§
impl RefUnwindSafe for SwitchStatement
impl Send for SwitchStatement
impl Sync for SwitchStatement
impl Unpin for SwitchStatement
impl UnwindSafe for SwitchStatement
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