feat: Added the ability to get the text of any given TreeItem
This commit is contained in:
1 parent
c6d1a5c7e5
commit
6e66e3e398
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user