arch_pkg_db/text/multi/
misc.rs

1use super::MultiTextCollection;
2
3impl MultiTextCollection<'_> {
4    /// Shrink the capacity of the internal data.
5    pub fn shrink_to_fit(&mut self) {
6        self.internal.shrink_to_fit()
7    }
8
9    /// Whether the multi-collection has any element.
10    pub fn is_empty(&self) -> bool {
11        self.iter().next().is_none()
12    }
13}