pub enum SettingValue {
Boolean,
Choice(&'static [&'static str]),
IntegerRange {
min: u16,
max: u16,
},
SignedIntegerRange {
min: i32,
max: i32,
},
}Expand description
Value shape accepted by a declared encoder or global setting.
Variants§
Boolean
Boolean setting, accepting common CLI spellings such as true, 1, or on.
Choice(&'static [&'static str])
String setting constrained to one of the listed choices.
IntegerRange
Integer setting constrained to an inclusive range.
SignedIntegerRange
Signed integer setting constrained to an inclusive range.
Implementations§
Trait Implementations§
Source§impl Clone for SettingValue
impl Clone for SettingValue
impl Copy for SettingValue
Source§impl Debug for SettingValue
impl Debug for SettingValue
impl Eq for SettingValue
Source§impl PartialEq for SettingValue
impl PartialEq for SettingValue
impl StructuralPartialEq for SettingValue
Auto Trait Implementations§
impl Forget for SettingValue
impl Freeze for SettingValue
impl RefUnwindSafe for SettingValue
impl Send for SettingValue
impl Sync for SettingValue
impl Unpin for SettingValue
impl UnsafeUnpin for SettingValue
impl UnwindSafe for SettingValue
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