pub enum Value {
Bool(bool),
Int(i64),
Float(f64),
String(String),
}
Expand description
A parsed value from a key-value pair.
Note that parsing is done based on a best-effort basis, which means
integers, floats etc. might actual be represented as a Value::String
.
Variants§
Bool(bool)
Parsed boolean.
Int(i64)
Parsed integer.
Float(f64)
Parsed floating pointer number.
String(String)
Unparsed string.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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