Struct toml_edit::ArrayOfTables
[−]
[src]
pub struct ArrayOfTables { /* fields omitted */ }
Type representing a TOML array of tables
Methods
impl ArrayOfTables
[src]
fn new() -> Self
[src]
Creates an empty array of tables.
fn iter(&self) -> Box<Iterator<Item = &'a Table> + 'a>
[src]
Returns an iterator over tables.
fn get(&self, index: usize) -> Option<&Table>
[src]
Returns an optional reference to the table.
fn get_mut(&mut self, index: usize) -> Option<&mut Table>
[src]
Returns an optional mutable reference to the table.
fn append(&mut self, table: Table) -> &mut Table
[src]
Appends a table to the array.
fn remove(&mut self, index: usize)
[src]
Removes a table with the given index.
fn clear(&mut self)
[src]
Removes all the tables.
fn len(&self) -> usize
[src]
Returns the length of the underlying Vec.
To get the actual number of items use a.iter().count()
.
fn is_empty(&self) -> bool
[src]
Returns true iff self.len() == 0
.
Trait Implementations
impl Clone for ArrayOfTables
[src]
fn clone(&self) -> ArrayOfTables
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ArrayOfTables
[src]
impl Default for ArrayOfTables
[src]
fn default() -> ArrayOfTables
[src]
Returns the "default value" for a type. Read more