Struct wgpu::core::naga::SwitchCase
source · pub struct SwitchCase {
pub value: SwitchValue,
pub body: Block,
pub fall_through: bool,
}
Expand description
A case for a switch statement.
Fields§
§value: SwitchValue
Value, upon which the case is considered true.
body: Block
Body of the case.
fall_through: bool
If true, the control flow continues to the next case in the list, or default.
Trait Implementations§
source§impl Clone for SwitchCase
impl Clone for SwitchCase
source§fn clone(&self) -> SwitchCase
fn clone(&self) -> SwitchCase
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SwitchCase
impl Send for SwitchCase
impl Sync for SwitchCase
impl Unpin for SwitchCase
impl UnwindSafe for SwitchCase
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