pub enum DefaultValue {
Value(&'static str),
Unset(&'static str),
Color {
dark: &'static str,
light: &'static str,
},
}Expand description
A setting’s default, as TOML.
Variants§
Value(&'static str)
Unset(&'static str)
No value unless one is written; the generated config shows this example.
Color
A theme color: one default per theme.mode.
Trait Implementations§
Source§impl Clone for DefaultValue
impl Clone for DefaultValue
impl Copy for DefaultValue
Source§impl Debug for DefaultValue
impl Debug for DefaultValue
impl Eq for DefaultValue
Source§impl PartialEq for DefaultValue
impl PartialEq for DefaultValue
impl StructuralPartialEq for DefaultValue
Auto Trait Implementations§
impl Freeze for DefaultValue
impl RefUnwindSafe for DefaultValue
impl Send for DefaultValue
impl Sync for DefaultValue
impl Unpin for DefaultValue
impl UnsafeUnpin for DefaultValue
impl UnwindSafe for DefaultValue
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