pub enum Switch {
Single(SingleSwitch),
Select(SelectSwitch),
Other(Value),
}Expand description
A switch supported by a Compiler.
Variants§
Single(SingleSwitch)
An on/off switch; enable it by passing its name.
Select(SelectSwitch)
A pick-one group (e.g. the C++ standard); enable an entry by passing
the option’s name.
Other(Value)
A switch shape this crate does not model, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Switch
impl<'de> Deserialize<'de> for Switch
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 Forget for Switch
impl Freeze for Switch
impl Move for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnsafeUnpin for Switch
impl UnwindSafe for Switch
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