pub enum ValueKind {
Nil,
Boolean(bool),
I64(i64),
I128(i128),
U64(u64),
U128(u128),
Float(f64),
String(String),
Table(Map<String, Value>),
Array(Vec<Value>),
}
Expand description
Underlying kind of the configuration value.
Standard operations on a Value
by users of this crate do not require
knowledge of ValueKind
. Introspection of underlying kind is only required
when the configuration values are unstructured or do not have known types.
Variants
Nil
Boolean(bool)
I64(i64)
I128(i128)
U64(u64)
U128(u128)
Float(f64)
String(String)
Table(Map<String, Value>)
Array(Vec<Value>)
Trait Implementations
impl StructuralPartialEq for ValueKind
Auto Trait Implementations
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnwindSafe for ValueKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more