#[non_exhaustive]pub enum HoconValue {
Object(IndexMap<String, HoconValue>),
Array(Vec<HoconValue>),
Scalar(ScalarValue),
}Expand description
A resolved HOCON value.
This is the tree that Config wraps. You normally interact
with it through the typed getters on Config, but it is also returned
directly by Config::get and
Config::get_list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Object(IndexMap<String, HoconValue>)
An ordered map of key-value pairs (HOCON object / JSON object).
Array(Vec<HoconValue>)
An ordered list of values (HOCON array / JSON array).
Scalar(ScalarValue)
A leaf value (string, number, boolean, or null).
Trait Implementations§
Source§impl Clone for HoconValue
impl Clone for HoconValue
Source§fn clone(&self) -> HoconValue
fn clone(&self) -> HoconValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoconValue
impl Debug for HoconValue
Source§impl PartialEq for HoconValue
impl PartialEq for HoconValue
impl StructuralPartialEq for HoconValue
Auto Trait Implementations§
impl Freeze for HoconValue
impl RefUnwindSafe for HoconValue
impl Send for HoconValue
impl Sync for HoconValue
impl Unpin for HoconValue
impl UnsafeUnpin for HoconValue
impl UnwindSafe for HoconValue
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