pub enum FlagSetting {
Default(FlagValue),
Unset,
Set(FlagValue, Span),
}
Expand description
A flag setting.
Variants§
Default(FlagValue)
A default value that has not been overriden (even if with the same value)
Unset
An unset flag, for ones without default values.
Set(FlagValue, Span)
An explicitly set value for a flag. NOT A FLAG SET.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlagSetting
impl RefUnwindSafe for FlagSetting
impl Send for FlagSetting
impl Sync for FlagSetting
impl Unpin for FlagSetting
impl UnwindSafe for FlagSetting
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<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more