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