feat: Added the ability to get the text of any given TreeItem
This commit is contained in:
@@ -90,6 +90,12 @@ where
|
|||||||
&self.identifier
|
&self.identifier
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get a reference to the text.
|
||||||
|
#[must_use]
|
||||||
|
pub const fn text(&self) -> &Text<'text> {
|
||||||
|
&self.text
|
||||||
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn children(&self) -> &[Self] {
|
pub fn children(&self) -> &[Self] {
|
||||||
&self.children
|
&self.children
|
||||||
|
|||||||
Reference in New Issue
Block a user