arch_pkg_db/text/multi/
new.rs

1use super::MultiTextCollection;
2
3impl MultiTextCollection<'_> {
4    /// Create an empty multi-collection.
5    pub fn new() -> Self {
6        MultiTextCollection::default()
7    }
8
9    /// Create an empty multi-collection with specified capacity.
10    pub fn with_capacity(capacity: usize) -> Self {
11        MultiTextCollection {
12            internal: Vec::with_capacity(capacity),
13        }
14    }
15}