Enum naga::SwitchValue
source · [−]pub enum SwitchValue {
Integer(i32),
Default,
}
Expand description
The value of the switch case.
Variants
Integer(i32)
Default
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for SwitchValue
impl<'arbitrary> Arbitrary<'arbitrary> for SwitchValue
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 SwitchValue
impl Clone for SwitchValue
sourcefn clone(&self) -> SwitchValue
fn clone(&self) -> SwitchValue
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 SwitchValue
impl Debug for SwitchValue
sourceimpl<'de> Deserialize<'de> for SwitchValue
impl<'de> Deserialize<'de> for SwitchValue
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 SwitchValue
impl Serialize for SwitchValue
Auto Trait Implementations
impl RefUnwindSafe for SwitchValue
impl Send for SwitchValue
impl Sync for SwitchValue
impl Unpin for SwitchValue
impl UnwindSafe for SwitchValue
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