pub enum Kind {
Bool,
Int(i64, i64),
Num(f64, f64),
Str,
Choice(&'static [&'static str]),
Duration,
Argv,
ArgvList,
StrList,
}Expand description
What a key holds.
Variants§
Bool
true or false.
Int(i64, i64)
A whole number in a range.
Num(f64, f64)
A number in a range.
Str
Text.
Choice(&'static [&'static str])
One of these.
Duration
30m, 12h, 7d.
Argv
A program and its arguments.
ArgvList
A list of programs with arguments.
StrList
A list of strings.
Trait Implementations§
impl Copy for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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