feat(tree_item): add method to expose identifier (#38)

This commit is contained in:
wenqian
2024-05-22 11:53:06 +08:00
committed by GitHub
parent b07b537067
commit c2b2340ef4
+6
View File
@@ -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