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
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for SwitchCase
impl<'arbitrary> Arbitrary<'arbitrary> for SwitchCase
sourcefn 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 more
sourcefn 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 more
sourceimpl Clone for SwitchCase
impl Clone for SwitchCase
sourcefn clone(&self) -> SwitchCase
fn clone(&self) -> SwitchCase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwitchCase
impl Debug for SwitchCase
sourceimpl<'de> Deserialize<'de> for SwitchCase
impl<'de> Deserialize<'de> for SwitchCase
sourcefn 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
sourceimpl Serialize for SwitchCase
impl Serialize for SwitchCase
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more