/// Type representing a TOML array, payload of the `DeValue::Array` variant #[derive(Clone)] pubstruct DeArray<'i> {
items: Vec<Spanned<DeValue<'i>>>,
array_of_tables: bool,
}
impl<'i> DeArray<'i> { /// Constructs a new, empty `DeArray`. /// /// This will not allocate until elements are pushed onto it. pubconstfn new() -> Self { Self {
items: Vec::new(),
array_of_tables: false,
}
}
/// Appends an element to the back of a collection. /// /// # Panics /// /// Panics if the new capacity exceeds `isize::MAX` _bytes_. pubfn push(&mutself, value: Spanned<DeValue<'i>>) { self.items.push(value);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.