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