feat: Added the ability to get the text of any given TreeItem

This commit is contained in:
2024-11-11 18:00:49 -07:00
parent c6d1a5c7e5
commit 6e66e3e398
+6
View File
@@ -90,6 +90,12 @@ where
&self.identifier
}
/// Get a reference to the text.
#[must_use]
pub const fn text(&self) -> &Text<'text> {
&self.text
}
#[must_use]
pub fn children(&self) -> &[Self] {
&self.children