Struct 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<'arbitrary> Arbitrary<'arbitrary> for SwitchCase
impl<'arbitrary> Arbitrary<'arbitrary> for SwitchCase
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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