Struct toml_document::Document
[−]
[src]
pub struct Document { /* fields omitted */ }
Methods
impl Document
[src]
fn new() -> Document
fn parse(text: &str) -> Result<Document, ParserError>
fn get(&self, key: &str) -> Option<EntryRef>
fn get_mut(&mut self, key: &str) -> Option<EntryRefMut>
fn len(&self) -> usize
fn iter<'a>(&'a self) -> Box<Iterator<Item = (&'a str, EntryRef<'a>)> + 'a>
fn get_child(&self, idx: usize) -> &DirectChild
fn get_child_mut(&mut self, idx: usize) -> &mut DirectChild
fn len_children(&self) -> usize
fn iter_children(&self) -> DirectChildren
fn get_container(&self, idx: usize) -> &Container
fn get_container_mut(&mut self, idx: usize) -> &mut Container
fn len_containers(&self) -> usize
fn iter_containers(&self) -> Containers
fn get_trailing_trivia(&self) -> &str
fn insert_string<S1, S2>(
&mut self,
idx: usize,
key: S1,
val: S2
) -> &mut StringValue where
S1: Into<String>,
S2: Into<String>,
&mut self,
idx: usize,
key: S1,
val: S2
) -> &mut StringValue where
S1: Into<String>,
S2: Into<String>,
fn insert_integer<S: Into<String>>(
&mut self,
idx: usize,
key: S,
value: i64
) -> &mut IntegerValue
&mut self,
idx: usize,
key: S,
value: i64
) -> &mut IntegerValue
fn insert_float<S: Into<String>>(
&mut self,
idx: usize,
key: S,
value: f64
) -> &mut FloatValue
&mut self,
idx: usize,
key: S,
value: f64
) -> &mut FloatValue
fn insert_boolean<S: Into<String>>(
&mut self,
idx: usize,
key: S,
value: bool
) -> &mut BoolValue
&mut self,
idx: usize,
key: S,
value: bool
) -> &mut BoolValue
fn insert_datetime<S1, S2>(
&mut self,
idx: usize,
key: S1,
value: S2
) -> &mut DatetimeValue where
S1: Into<String>,
S2: Into<String>,
&mut self,
idx: usize,
key: S1,
value: S2
) -> &mut DatetimeValue where
S1: Into<String>,
S2: Into<String>,
fn insert_array<S: Into<String>>(
&mut self,
idx: usize,
key: S
) -> &mut InlineArray
&mut self,
idx: usize,
key: S
) -> &mut InlineArray
fn insert_inline_table<S: Into<String>>(
&mut self,
idx: usize,
key: S
) -> &mut InlineTable
&mut self,
idx: usize,
key: S
) -> &mut InlineTable
fn insert_container<K, S>(
&mut self,
idx: usize,
keys: K,
kind: ContainerKind
) -> &mut Container where
K: Iterator<Item = S>,
S: Into<String>,
&mut self,
idx: usize,
keys: K,
kind: ContainerKind
) -> &mut Container where
K: Iterator<Item = S>,
S: Into<String>,