Enum slr_config::ConfigElementKind
source · pub enum ConfigElementKind {
Value(String),
Table(IndexMap<String, ConfigElement>),
TaggedTable(String, IndexMap<String, ConfigElement>),
Array(Vec<ConfigElement>),
TaggedArray(String, Vec<ConfigElement>),
MultiLineArray(Vec<ConfigElement>),
MultiLineTaggedArray(String, Vec<ConfigElement>),
}
Expand description
The kind of the configuration element.
Variants§
Value(String)
A simple value, containing a string.
Table(IndexMap<String, ConfigElement>)
A table, which is a mapping of strings to configuration elements.
TaggedTable(String, IndexMap<String, ConfigElement>)
A tagged table, which is a mapping of strings to configuration elements with a string tag.
Array(Vec<ConfigElement>)
An array of configuration elements.
TaggedArray(String, Vec<ConfigElement>)
An array of configuration elements with a string tag.
MultiLineArray(Vec<ConfigElement>)
An array of configuration elements, printed with multiple lines.
MultiLineTaggedArray(String, Vec<ConfigElement>)
An array of configuration elements with a string tag, printed with multiple lines.
Trait Implementations§
source§impl Clone for ConfigElementKind
impl Clone for ConfigElementKind
source§fn clone(&self) -> ConfigElementKind
fn clone(&self) -> ConfigElementKind
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConfigElementKind
impl Send for ConfigElementKind
impl Sync for ConfigElementKind
impl Unpin for ConfigElementKind
impl UnwindSafe for ConfigElementKind
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