Struct toml_edit::ArrayOfTables
source · [−]pub struct ArrayOfTables { /* private fields */ }
Expand description
Type representing a TOML array of tables
Implementations
sourceimpl ArrayOfTables
impl ArrayOfTables
Constructors
See also FromIterator
sourceimpl ArrayOfTables
impl ArrayOfTables
sourcepub fn iter(&self) -> ArrayOfTablesIter<'_>
pub fn iter(&self) -> ArrayOfTablesIter<'_>
Returns an iterator over tables.
sourcepub fn iter_mut(&mut self) -> ArrayOfTablesIterMut<'_>
pub fn iter_mut(&mut self) -> ArrayOfTablesIterMut<'_>
Returns an iterator over tables.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the length of the underlying Vec.
To get the actual number of items use a.iter().count()
.
Trait Implementations
sourceimpl Clone for ArrayOfTables
impl Clone for ArrayOfTables
sourcefn clone(&self) -> ArrayOfTables
fn clone(&self) -> ArrayOfTables
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ArrayOfTables
impl Debug for ArrayOfTables
sourceimpl Default for ArrayOfTables
impl Default for ArrayOfTables
sourcefn default() -> ArrayOfTables
fn default() -> ArrayOfTables
Returns the “default value” for a type. Read more
sourceimpl Display for ArrayOfTables
impl Display for ArrayOfTables
sourceimpl Extend<Table> for ArrayOfTables
impl Extend<Table> for ArrayOfTables
sourcefn extend<T: IntoIterator<Item = Table>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Table>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<Table> for ArrayOfTables
impl FromIterator<Table> for ArrayOfTables
sourcefn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Table>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Table>,
Creates a value from an iterator. Read more
sourceimpl<'s> IntoIterator for &'s ArrayOfTables
impl<'s> IntoIterator for &'s ArrayOfTables
sourceimpl IntoIterator for ArrayOfTables
impl IntoIterator for ArrayOfTables
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more