pub enum Kind {
Bool,
Count,
Text,
Path,
List,
Choice(&'static [&'static str]),
Size,
Duration,
Color,
Toml(&'static str),
Tables,
}Expand description
What a setting’s value is. It decides how -c reads the text after =, and what
the reference says the key takes.
Variants§
Bool
Count
A whole number, 0 or more.
Text
Path
A path; ~ and $VAR expand.
List
A list of strings. -c takes a,b or a TOML array.
Choice(&'static [&'static str])
One of these words.
Size
Bytes with a unit: 512MiB.
Duration
A duration with a unit: 250ms.
Color
A color: a name, #rrggbb or indexed(N).
Toml(&'static str)
A value of more than one shape, written as TOML; the text says which.
Tables
An array of tables, written in a file: [[sources]]. Not settable with -c.
Implementations§
Trait Implementations§
impl Copy for Kind
impl Eq 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