pub enum Setting<T> {
Unset,
Set(T),
Reset,
}Expand description
What a rule says about a setting that holds one value.
Variants§
Unset
Nothing: a rule folded earlier decides, and with none upstream Wine.
Set(T)
This value, which beats that of every rule folded earlier.
Reset
default: from this rule on the setting is unset again, so upstream
Wine decides unless a rule folded later sets it.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Setting<T>
impl<T: Eq> Eq for Setting<T>
impl<T: PartialEq> StructuralPartialEq for Setting<T>
Auto Trait Implementations§
impl<T> Freeze for Setting<T>where
T: Freeze,
impl<T> RefUnwindSafe for Setting<T>where
T: RefUnwindSafe,
impl<T> Send for Setting<T>where
T: Send,
impl<T> Sync for Setting<T>where
T: Sync,
impl<T> Unpin for Setting<T>where
T: Unpin,
impl<T> UnsafeUnpin for Setting<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Setting<T>where
T: UnwindSafe,
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