feat(tree_item): add method to expose identifier (#38)
This commit is contained in:
1 parent
b07b537067
commit
c2b2340ef4
1 file changed
+6
@@ -84,6 +84,12 @@ where
|
||||
})
|
||||
}
|
||||
|
||||
/// Get a reference to the identifier.
|
||||
#[must_use]
|
||||
pub const fn identifier(&self) -> &Identifier {
|
||||
&self.identifier
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn children(&self) -> &[Self] {
|
||||
&self.children
|
||||
|
||||
Reference in new issue
Block a user