feat: Added the ability to get the text of any given TreeItem
This commit is contained in:
@@ -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