Struct toml_edit::Array
[−]
[src]
pub struct Array { /* fields omitted */ }Type representing a TOML array,
payload of the Value::Array variant's value
Methods
impl Array[src]
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]
Return true iff self.len() == 0.
fn iter(&self) -> Box<Iterator<Item = &'a Value> + 'a>[src]
Returns an iterator over all values.
fn push<V: Into<Value>>(&mut self, v: V) -> bool[src]
Appends a new value.
fn get(&mut self, index: usize) -> Option<&Value>[src]
Return an optional reference to the value at the given index.
fn remove(&mut self, index: usize) -> Value[src]
Removes the value at the given index.
fn fmt(&mut self)[src]
Auto formats the array.
Trait Implementations
impl Debug for Array[src]
impl Default for Array[src]
impl Clone for Array[src]
fn clone(&self) -> Array[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