pub enum ConfigValue {
Null,
Bool(bool),
Integer(i64),
Float(f64),
String(String),
Array(Vec<ConfigValue>),
Table(BTreeMap<String, ConfigValue>),
}Variants§
Null
Bool(bool)
Integer(i64)
Float(f64)
String(String)
Array(Vec<ConfigValue>)
Table(BTreeMap<String, ConfigValue>)
Implementations§
Source§impl ConfigValue
impl ConfigValue
pub fn as_table(&self) -> Option<&BTreeMap<String, ConfigValue>>
pub fn as_table_mut(&mut self) -> Option<&mut BTreeMap<String, ConfigValue>>
pub fn is_null(&self) -> bool
Trait Implementations§
Source§impl Clone for ConfigValue
impl Clone for ConfigValue
Source§impl Debug for ConfigValue
impl Debug for ConfigValue
Source§impl Default for ConfigValue
impl Default for ConfigValue
Source§impl From<&str> for ConfigValue
impl From<&str> for ConfigValue
Source§impl From<String> for ConfigValue
impl From<String> for ConfigValue
Source§impl From<bool> for ConfigValue
impl From<bool> for ConfigValue
Source§impl From<f64> for ConfigValue
impl From<f64> for ConfigValue
Source§impl From<i64> for ConfigValue
impl From<i64> for ConfigValue
Source§impl FromStr for ConfigValue
impl FromStr for ConfigValue
Source§impl PartialEq for ConfigValue
impl PartialEq for ConfigValue
impl StructuralPartialEq for ConfigValue
Auto Trait Implementations§
impl Freeze for ConfigValue
impl RefUnwindSafe for ConfigValue
impl Send for ConfigValue
impl Sync for ConfigValue
impl Unpin for ConfigValue
impl UnsafeUnpin for ConfigValue
impl UnwindSafe for ConfigValue
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