docs: use doc comments and doc tests

This commit is contained in:
EdJoPaTo
2022-11-06 13:36:30 +01:00
parent cf104bb495
commit a902bce55d
3 changed files with 71 additions and 25 deletions
+1
View File
@@ -14,6 +14,7 @@ impl<'a> Flattened<'a> {
}
}
/// Get a flat list of all visible [`TreeItem`s](TreeItem)
pub fn flatten<'a>(opened: &[TreeIdentifierVec], items: &'a [TreeItem<'a>]) -> Vec<Flattened<'a>> {
internal(opened, items, &[])
}