feat(tree_item): add method to expose identifier (#38)
This commit is contained in:
@@ -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