Struct wgpu::core::naga::SwitchCase
source · pub struct SwitchCase {
pub value: SwitchValue,
pub body: Block,
pub fall_through: bool,
}Available on
wgpu_core only.Expand description
A case for a switch statement.
Fields§
§value: SwitchValueValue, upon which the case is considered true.
body: BlockBody of the case.
fall_through: boolIf 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 moresource§impl Debug for SwitchCase
impl Debug for SwitchCase
source§impl<'de> Deserialize<'de> for SwitchCase
impl<'de> Deserialize<'de> for SwitchCase
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SwitchCase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SwitchCase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SwitchCase
impl Serialize for SwitchCase
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto 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