[−][src]Struct toml_edit::ArrayOfTables
Type representing a TOML array of tables
Methods
impl ArrayOfTables[src]
pub fn new() -> Self[src]
Creates an empty array of tables.
pub fn iter(&self) -> Box<dyn Iterator<Item = &'a Table> + 'a>[src]
Returns an iterator over tables.
pub fn get(&self, index: usize) -> Option<&Table>[src]
Returns an optional reference to the table.
pub fn get_mut(&mut self, index: usize) -> Option<&mut Table>[src]
Returns an optional mutable reference to the table.
pub fn append(&mut self, table: Table) -> &mut Table[src]
Appends a table to the array.
pub fn remove(&mut self, index: usize)[src]
Removes a table with the given index.
pub fn clear(&mut self)[src]
Removes all the tables.
pub fn len(&self) -> usize[src]
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]
Returns true iff self.len() == 0.
Trait Implementations
impl Clone for ArrayOfTables[src]
fn clone(&self) -> ArrayOfTables[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ArrayOfTables[src]
impl Default for ArrayOfTables[src]
fn default() -> ArrayOfTables[src]
Auto Trait Implementations
impl RefUnwindSafe for ArrayOfTables
impl Send for ArrayOfTables
impl Sync for ArrayOfTables
impl Unpin for ArrayOfTables
impl UnwindSafe for ArrayOfTables
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,