Struct slr_config::ConfigElement
[−]
[src]
pub struct ConfigElement { // some fields omitted }
Methods
impl ConfigElement
[src]
fn new_table() -> ConfigElement
fn new_value<T: ToString>(value: T) -> ConfigElement
fn new_array() -> ConfigElement
fn from_str<'l>(filename: &'l Path, source: &'l str) -> Result<(ConfigElement, Source<'l>), Error>
fn fill_from_str<'l>(&mut self, filename: &'l Path, source: &'l str) -> Result<Source<'l>, Error>
fn kind(&self) -> &ConfigElementKind
fn as_table(&self) -> Option<&BTreeMap<String, ConfigElement>>
fn as_table_mut(&mut self) -> Option<&mut BTreeMap<String, ConfigElement>>
fn as_value(&self) -> Option<&String>
fn as_value_mut(&mut self) -> Option<&mut String>
fn as_array(&self) -> Option<&Vec<ConfigElement>>
fn as_array_mut(&mut self) -> Option<&mut Vec<ConfigElement>>
fn insert<T: ToString>(&mut self, name: T, elem: ConfigElement)
fn print<W: Write>(&self, name: Option<&str>, is_root: bool, p: &mut Printer<W>) -> Result<(), Error>
Trait Implementations
impl Clone for ConfigElement
[src]
fn clone(&self) -> ConfigElement
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more