pub enum FlagValue<'a> {
Enum(&'a str),
Num(u8),
Bool(bool),
}
Expand description
Value of a configured setting for a Compiler
Variants§
Enum(&'a str)
Name of the value that has been configured for this setting.
Num(u8)
The numerical value of the configured settings.
Bool(bool)
Whether the setting is on or off.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for FlagValue<'a>
impl<'de: 'a, 'a> Deserialize<'de> for FlagValue<'a>
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
impl<'a> Eq for FlagValue<'a>
impl<'a> StructuralPartialEq for FlagValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for FlagValue<'a>
impl<'a> RefUnwindSafe for FlagValue<'a>
impl<'a> Send for FlagValue<'a>
impl<'a> Sync for FlagValue<'a>
impl<'a> Unpin for FlagValue<'a>
impl<'a> UnwindSafe for FlagValue<'a>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.