Struct configuration::Tree
[−]
[src]
pub struct Tree { /* fields omitted */ }
A tree.
Methods
impl Tree
[src]
fn new() -> Tree
Create a tree.
fn branch(&self, path: &str) -> Option<Tree>
Return a subtree.
fn forest(&self, path: &str) -> Option<Vec<Tree>>
Return an array of subtrees.
fn get<'l, T: Any>(&'l self, path: &str) -> Option<&'l T>
Read a value.
fn set<T: Any>(&mut self, path: &str, value: T) -> Option<()>
Write a value.
Trait Implementations
impl Debug for Tree
[src]
impl Clone for Tree
[src]
fn clone(&self) -> Self
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