Struct ion::Ion
[−]
[src]
pub struct Ion { /* fields omitted */ }
Methods
impl Ion
[src]
pub fn new(map: BTreeMap<String, Section>) -> Ion
[src]
pub fn from_str_filtered(
s: &str,
accepted_sections: Vec<&str>
) -> Result<Self, IonError>
[src]
s: &str,
accepted_sections: Vec<&str>
) -> Result<Self, IonError>
pub fn get(&self, key: &str) -> Option<&Section>
[src]
pub fn fetch(&self, key: &str) -> Result<&Section, IonError>
[src]
pub fn remove(&mut self, key: &str) -> Option<Section>
[src]
Removes a Section
from the ion structure and returning it
pub fn iter(&self) -> Iter<String, Section>
[src]
Trait Implementations
impl Display for Ion
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Debug for Ion
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more