Struct DeArray
pub struct DeArray<'i> { /* private fields */ }
Type representing a TOML array, payload of the DeValue::Array variant
Implementations
impl<'i> DeArray<'i>
const fn new() -> SelfConstructs a new, empty
DeArray.This will not allocate until elements are pushed onto it.
fn push(&mut self, value: Spanned<DeValue<'i>>)Appends an element to the back of a collection.
Panics
Panics if the new capacity exceeds
isize::MAXbytes.
Trait Implementations
impl Debug for DeArray<'_>
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
impl Default for DeArray<'static>
fn default() -> Self
impl<'i> AsMut<[Spanned<DeValue<'i>>]> for DeArray<'i>
fn as_mut(&mut self) -> &mut [Spanned<DeValue<'i>>]
impl<'i> AsRef<[Spanned<DeValue<'i>>]> for DeArray<'i>
fn as_ref(&self) -> &[Spanned<DeValue<'i>>]
impl<'i> Borrow<[Spanned<DeValue<'i>>]> for DeArray<'i>
fn borrow(&self) -> &[Spanned<DeValue<'i>>]
impl<'i> BorrowMut<[Spanned<DeValue<'i>>]> for DeArray<'i>
fn borrow_mut(&mut self) -> &mut [Spanned<DeValue<'i>>]
impl<'i> Clone for DeArray<'i>
fn clone(&self) -> Self
impl<'i> Deref for DeArray<'i>
type Target = [Spanned<DeValue<'i>>];fn deref(&self) -> &[Spanned<DeValue<'i>>]
impl<'i> DerefMut for DeArray<'i>
fn deref_mut(&mut self) -> &mut [Spanned<DeValue<'i>>]
impl<'i> FromIterator<Spanned<DeValue<'i>>> for DeArray<'i>
fn from_iter<I: IntoIterator<Item = Spanned<DeValue<'i>>>>(iter: I) -> Self
impl<'i> IntoIterator for DeArray<'i>
type Item = Spanned<DeValue<'i>>;type IntoIter = IntoIter<Spanned<DeValue<'i>>>;fn into_iter(self) -> Self::IntoIter
impl<'i, I: SliceIndex<[Spanned<DeValue<'i>>]>> Index<I> for DeArray<'i>
type Output = <I as SliceIndex<[Spanned<DeValue<'i>>]>>::Output;fn index(&self, index: I) -> &Self::Output