arch_pkg_db/text/single/insert.rs
1use super::TextCollection;
2use crate::Text;
3
4impl TextCollection {
5 /// Add data into the text collection.
6 pub fn insert(&mut self, text: Text) {
7 self.internal.push(text);
8 }
9
10 /// Add data into the text collection.
11 pub fn add_item(mut self, text: Text) -> Self {
12 self.insert(text);
13 self
14 }
15}